ppelgrims / moveable-feasts
Carbon Mixing
1.0.1
2018-09-17 14:18 UTC
Requires
- php: ^5.4 || ^7.0
- nesbot/carbon: ~1.0|~2.0
Requires (Dev)
- ext-intl: *
- phpunit/phpunit: ^4.8.35 || ^5.7
- squizlabs/php_codesniffer: ^2.0
This package is auto-updated.
Last update: 2025-03-06 02:27:29 UTC
README
Moveable Feasts
A mixin for Carbon to provide dates of moveable feasts.
Installation
$ composer require ppelgrims/moveable-feasts
Usage
Carbon::mixin(new MoveableFeasts\MoveableFeastsMixin()); Carbon::easter()->toDateString(); // "2018-04-01" Carbon::easter(2020)->toDateString(); // "2020-04-12"
Available methods
Carbon::ashWednesday(); Carbon::palmSunday(); Carbon::holyMonday(); Carbon::holyTuesDay(); Carbon::holyWednesday(); Carbon::easter(); Carbon::easterSunday(); // alias Carbon::easterMonday(); Carbon::ascension(); Carbon::pentacost(); Carbon::pentacostSunday(); // alias Carbon::pentacostMonday(); Carbon::advent(); Carbon::christmas();
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.