Download the PHP package tanthammar/recurring without Composer
On this page you can find all versions of the php package tanthammar/recurring. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tanthammar/recurring
More information about tanthammar/recurring
Files in tanthammar/recurring
Package recurring
Short Description Laravel Eloquent RRULE tools
License MIT
Homepage https://github.com/tanthammar/recurring
Informations about the package recurring
Laravel Eloquent RRULE helpers
This package adds Eloquent helpers for Simshauns php Recurr package
Installation
You can install the package via composer:
Important
start_at
andend_at
are expected to be stored in its timezone, not converted to utc in db. TheBuilder
will convert them using the timezone attribute.end_at
represents DURATION not last recurrence, src: https://github.com/simshaun/recurr/issues/44
Usage
Let's say you have a DatePattern model in your codebase.
The Builder parses them in combination with the timezone attribute.
Your model must have the following attributes:
Apply the IsRecurring
trait to the model
After saving a string rrule
to the str_rule
field, you'll have access to the following methods.
For further information about additional methods see https://github.com/simshaun/recurr
All RecurrenceCollection
methods returns max 732 recurrences. (Same as parent simshaun/recurr package).
Use the $count
parameter to set how many recurrences you want returned.
Contributing
Happy for every contribution, make a PR :)
License
The MIT License (MIT). Please see License File for more information.
All versions of recurring with dependencies
laravel/framework Version ^9.0|^10.0|^11.0
simshaun/recurr Version ^5.0
spatie/laravel-package-tools Version ^1.9.2