Download the PHP package joaosalless/dates without Composer
On this page you can find all versions of the php package joaosalless/dates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download joaosalless/dates
More information about joaosalless/dates
Files in joaosalless/dates
Package dates
Short Description Date library for identification of holidays or commemorative dates (national, state, municipal), automatic calculation of working days and office hours.
License MIT
Homepage https://github.com/joaosalless/dates
Informations about the package dates
dates
Collaborative Date library for identification of holidays and commemorative dates from countries, states and cities with automatic calculation of business days and office hours.
This library was inspired by the checkdomain/holiday project, completely rewritten to support holidays and commemorative dates from countries, states and cities with automatic calculation of business days and office hours without having to write a new class for each. Events are loaded from a CSV that may be updated from an collaborative API in the future.
Currently supported countries
- 🇧🇷 BR Brazil
- [x] National holidays
- [x] Estate holidays
- [x] City holidays
- [ ] Commemorative dates
- [x] Business days
- [x] Office hours
Your country, state or city is not supported?
joaosalless/dates is open source. If you use this library it would be great to get some support for currently not implemented countries which you are familiar with. Pull requests will be reviewed and merged fast.
Install
Via Composer
Usage
Holidays
Commemorative Dates
Business days
Calculates business days from a start date and a specified number of days
Office hours
Checks if given DateTime instance or datetime string is a office hours
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- João Sales
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of dates with dependencies
illuminate/support Version ^5.3|^6.0
league/csv Version ^7.0
ext-calendar Version *
ext-json Version *