qobo / cakephp-calendar
Calendaring plugin for CakePHP
Installs: 21 663
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 15
Forks: 2
Open Issues: 4
Type:cakephp-plugin
Requires
- qobo/cakephp-utils: ^13.0
Requires (Dev)
- qobo/cakephp-composer-dev: ^v1.0
- dev-master
- v6.4.1
- v6.4.0
- v6.3.1
- v6.3.0
- v6.2.0
- v6.1.2
- v6.1.1
- v6.1.0
- v6.0.0
- v5.0.0
- v4.2.0
- v4.1.0
- v4.0.1
- v4.0.0
- v3.3.1
- v3.3.0
- v3.2.8
- v3.2.7
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.1
- v3.0.0
- v2.7.10
- v2.7.9
- v2.7.8
- v2.7.7
- v2.7.6
- v2.7.5
- v2.7.4
- v2.7.3
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.1
- v2.6.0
- v2.5.0
- v2.4.10
- v2.4.9
- v2.4.8
- v2.4.7
- v2.4.6
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.0
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.1
- v2.0.0
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- dev-dependabot/add-v2-config-file
- dev-npm-fixing-deps
This package is auto-updated.
Last update: 2021-07-28 22:10:24 UTC
README
About
CakePHP 3 plugin that uses FullCalendar JS (as part of AdminLTE) to manage calendar events and attendees.
Some of the things that we'll be adding shortly:
- Calendar Attendees search via auto-complete (using Select2 checkbox).
- Recurring calendar events.
- Prototyping calendar attendees.
- Full re-write of jQuery to VueJS components.
- FreeBusy Calendar implementation.
This plugin is developed by Qobo for Qobrix. It can be used as standalone CakePHP plugin, or as part of the project-template-cakephp installation.
NOTE: The plugin is under development, so any Bug Reports and Pull Requests are more than welcomed.
Plugin installation
Install with composer:
composer require qobo/cakephp-calendar
Load plugin and its requirements in the application. In config/bootstrap.php
:
# Optionally adding AdminLTE and Qobo Utils that are partially used inside. Plugin::load('AdminLTE', ['bootstrap' => true, 'routes' => true]); Plugin::load('Qobo/Utils'); Plugin::load('Qobo/Calendar', ['bootstrap' => true, 'routes' => true]);
Run database schema migrations to create tables that will hold calendars, events, attendees, etc.:
./bin/cake migrations migrate --plugin Qobo/Calendar
Customization
JavaScript and Styling.
The plugin heavily relies on AdminLTE Bootstrap theme for styling, so you should make some adjustments in src/Template/Calendars/index.ctp
in order to get it running.
<?php echo $this->Html->css( [ 'Qobo/Calendar.fullcalendar.min.css', 'AdminLTE./plugins/select2/select2.min', 'AdminLTE./plugins/daterangepicker/daterangepicker', 'Qobo/Utils.select2-bootstrap.min', 'Qobo/Calendar.calendar', ] ); echo $this->Html->script([ 'Qobo/Calendar./dist/vendor', 'Qobo/Calendar./dist/app', ], [ 'block' => 'scriptBottom' ]); ?>
In order to initialise Calendar VueJS application, you should define #qobo-calendar-app
element:
<section class="content" id="qobo-calendar-app" token="YourApiToken"> <calendar :timezone="timezone" :editable="editable" :show-print-button="true"></calendar> </section>
VueJS Contributions
Calendar Plugin has package.json
of all required modules, in order to modify dist
compiled JS files.
Run yarn
command to install required node_module
to proceed with development.
In case you need HotReload functionality, run:
yarn watch
Preparing production ready build:
yarn build:prod
For more scripts and linters etc., please check package.json
file.