Download the PHP package todstoychev/calendar-events without Composer
On this page you can find all versions of the php package todstoychev/calendar-events. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download todstoychev/calendar-events
More information about todstoychev/calendar-events
Files in todstoychev/calendar-events
Package calendar-events
Short Description Full calendar events module for Laravel
License MIT
Informations about the package calendar-events
Laravel 5 module to integrate a fullcalendar javascript plugin. It provides simple way to store events in the database and supports event repeat.
Installation
Use the standard way .
Register the service provider at your Laravel . You should add .
Run to publish config and other assets.
This module provides also 3 migration files. It will be necessary to run them .
Usage
Forms
This module comes with a ready to use form template. The form can be used as edit and add form. In your blade use to include it in your page. Also feel free to override and extend this template.
To use this form add to your page you will need a javascript file provided from the module. After running vendor publish command you should be able to find . This script is necessary to control provided form. It contains simple JS object with few methods inside.
Controller
Since this module has service provider at the container, you can access CalendarEventsService::class in your controller like this:
This the main module class that contains all the necessary methods to interact with.
Module provides a request class which can be used to validate your input data. Here an example usage of how to create new event.
The service class has methods to provide fully functional crud. To update event you can use . To get a single event use . will fetch all calendar events. The most important method is probably . This one should be used with the javascript plugin. The method provides the necessary json string. Here example of usage. In your controller create a method like this one:
This one should be used with fullcalendar like this:
Do not forget that you will need to include fullcalendar plugin in your project.
TODO
- Add more PHPUnit test to achieve maximum coverage.
- Create Bootstrap 3 compatible templates for the form.
- Add functionality to repeat event each week, month and year.
- Add functionality to select weekdays on which event will be repeated.
- Add functionality to repeat event after number of days.
- Add functionality to repeat event certain times.
All versions of calendar-events with dependencies
todstoychev/websafe-colors Version ^0.1.1
nesbot/carbon Version ^1.22
laravel/framework Version >=5.1