1
- # fullcalendar-BS4-PHP-MySQL-JSON
2
- FullCalendar 3 integration with boostrap4, php, mysql / bootstrap4, php, json
1
+ # FullCalendar-BS4-PHP-MySQL-JSON
2
+
3
+ A drag & drop event calendar with data permanence.
4
+
5
+ ![ FullCalendar with data permanence] ( img/main.png )
3
6
4
7
## Purpose
5
8
6
- Updates and expands on jamelbaz's FullCalendar-BS3-PHP-MySQL repository.
9
+ MySQL/JSON integration with fullcalendar
7
10
8
- * Supports event scheduling using JSON / MySQL event scheduling updated
9
- * FullCalendar updated from 2.6.1 to 3.9.0
10
- * Clickable calendar date numbers
11
- * Added the calendar list view
12
- * Includes business hours and now indicator
13
- * Bootstrap updated from BS3 to BS4
14
- * Event title and description display on hover integration (popper.js)
15
- * Added event description field
16
- * Revamped delete button
17
- * Calendar resizing for optimal screen real estate
18
- * Week and Day views set to display times 8:00AM to 4:30PM without scroll
11
+ * FC updated from v2.6.1 to v3.9.0
12
+ * BS3 to BS4 update
13
+ * Event title/description hover added
14
+ * Repeating events (NEW!)
15
+ * Weekday scheduling supported!
16
+ * Recurring events, all-day events, multi-day events supported
17
+ * Recurrence editing restricted to delete only
18
+ * Available for JSON
19
+ * Event scheduling
20
+ * JSON scheduling added
21
+ * Description field added for MySQL/JSON
19
22
20
23
## Getting Started
21
24
22
- * Go to your MySQL via localhost, create a table called "calendar", and create the tables found in calendar.sql
23
-
24
- * Open bdd.php and enter your database password
25
+ MySQL
25
26
26
- * Go to localhost and navigate to the project directory
27
+ 1 . Copy files to localhost
28
+ 2 . Create a table in DB called "calendar", and create the tables found in calendar.sql
29
+ 3 . Open bdd.php and enter DB credentials
30
+ 4 . Open index.php
27
31
28
- * index.php enables event scheduling integration with PHP and MySQL
32
+ JSON
29
33
30
- * index-json.php and associated files enable event scheduling integration with PHP and JSON
34
+ 1 . Copy files to localhost
35
+ 2 . Open index-json.php
31
36
32
37
# Features
33
38
34
- * Add events by clicking and dragging on the calendar
35
-
36
- * Edit/delete events by double clicking them
37
-
38
- * Supports event title, description, start date/time, end date/time, and color attributes
39
-
40
- * Utilizes popper.js to show event title and description on hover
39
+ * Repeating events (NEW!)
40
+ * Weekday scheduling supported!
41
+ * Recurring events, all-day events, multi-day events supported
42
+ * Recurrence editing restricted to delete only
43
+ * Available for JSON
44
+ * Event scheduling
45
+ * JSON scheduling added
46
+ * Description field added for JSON/MySQL
47
+ * FC updated from v2.6.1 to v3.9.0
48
+ * BS3 to BS4 update
49
+ * Event title/description onhover added
50
+
51
+ # Usage
52
+
53
+ JSON Object Event
54
+
55
+ ```
56
+ [{"id":4,
57
+ "rid":4,
58
+ "repeat":"no",
59
+ "title":"Meeting",
60
+ "description":"some text for meeting",
61
+ "start":"2019-01-11 10:30:00",
62
+ "end":"2019-01-11 12:30:00",
63
+ "color":"#000"
64
+ }]
65
+ ```
66
+
67
+ MySQL Event Schema
68
+
69
+ ```
70
+ ('id', 'title', 'description', 'color', 'start', 'end')
71
+ (5, 'Meeting', 'some text for meeting', '#000', '2019-01-11 10:30:00', '2019-01-11 12:30:00')
72
+ ```
73
+
74
+ * rid = recurrence id
75
+ * repeat = repeat status
41
76
42
77
## Additional Readings & Resources
43
78
44
79
* FullCalendar documentation: https://fullcalendar.io/docs#toc
80
+ * FullCalendar repo: https://github.com/fullcalendar/fullcalendar
81
+ * FullCalendar with MySQL event scheduling: https://github.com/jamelbaz/FullCalendar-BS3-PHP-MySQL
45
82
46
83
## Built With
47
84
48
- * Bootstrap
49
- * PHP5
50
- * MySQL
51
- * JSON / jQuery / JavaScript
52
- * HTML / CSS
85
+ * FC v3.9.0
86
+ * BS4
87
+ * PHP5/7
88
+ * JSON/MySQL
89
+ * JavaScript/jQuery
90
+ * HTML/CSS
53
91
54
92
## Contributing
55
93
56
- When contributing to this repository, you may fork and submit a pull request. Add a description of what you are doing and I'll review it .
94
+ Submit a PR and I'll review. Look for untagged issues to help with .
57
95
58
96
## Versioning
59
97
60
- Version 1.0 .0
98
+ Version 1.1 .0
61
99
62
100
## Authors
63
101
@@ -71,5 +109,7 @@ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md
71
109
72
110
## Acknowledgments
73
111
74
- * Project forked from jamelbaz's repository: https://github.com/jamelbaz/FullCalendar-BS3-PHP-MySQL
75
- * JSON blog code used in the creation of event php forms: https://www.taniarascia.com/how-to-use-json-data-with-php-or-javascript/
112
+ * Repo built on Adam Shaw's FC: https://github.com/fullcalendar/fullcalendar
113
+ * Repo forked from jamelbaz's repository: https://github.com/jamelbaz/FullCalendar-BS3-PHP-MySQL
114
+ * Code used for JSON event scheduling: https://www.taniarascia.com/how-to-use-json-data-with-php-or-javascript/
115
+ * Code used for event scheduling recurrences: https://stackoverflow.com/questions/7061802/php-function-for-get-all-mondays-within-date-range
0 commit comments