Download the PHP package joaorbrandao/laravel-intervals without Composer
On this page you can find all versions of the php package joaorbrandao/laravel-intervals. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download joaorbrandao/laravel-intervals
More information about joaorbrandao/laravel-intervals
Files in joaorbrandao/laravel-intervals
Package laravel-intervals
Short Description This package creates a simple way of adding time intervals to your projects.
License MIT
Homepage https://github.com/joaorbrandao/laravel-intervals
Informations about the package laravel-intervals
laravel-intervals
This package creates a simple way of adding time intervals to your projects.
Installing
Publish the package into your application.
A folder containing some filters will be published in "app/LaravelIntervals".
Feel free to modify/delete them if you want!
Usage
Create a new Interval
This command will create a new interval in "app/LaravelIntervals".
Setup the Interval
Each time interval has 5 properties: start, end, enabled, id and name.
Property | Description |
---|---|
start | Represents the start time of the interval. |
end | Represents the end time of the interval. |
enabled | Enables/disables the usage of the interval. |
id | Identifies the interval as unique. |
name | The interval's name for translation purposes. |
After running the command to create the interval, you must change the start and end to match with the interval name.
Make use of it!
One of the ways of using this is with the Facade. The result of the facade is the time interval set defined in the configuration file with the start and end properties being Carbon instances.
License
laravel-intervals is an open-source laravel package licensed under the MIT license.
All versions of laravel-intervals with dependencies
ext-json Version *
illuminate/support Version ^7.0
nesbot/carbon Version ^2.25