Skip to content

A mixin for Carbon to provide dates of moveable feasts

License

Notifications You must be signed in to change notification settings

ppelgrims/moveable-feasts

Repository files navigation

Build Status GitHub Packagist

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.