carbon-colombia
Se agregan los festivos de Colombia, con el fin de poder agregar dias hábiles.
Install
Via Composer
$ composer require torreswil/carbon-colombia
Usage
$fecha = CarbonColombia::create(2019,04,16);
$fecha->addBussinessDays(5);
echo $fecha->toDateString();
//imprime 2019-04-25
$fecha = CarbonColombia::create(2019,04,16);
$fecha2 = CarbonColombia::create(2019,04,25);
echo $fecha->diffInBussinessDays($fecha2);
//imprime 5
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email wtorresariza@gmail.com instead of using the issue tracker.
Credits
- Wilfredo Torres
- Inspirado en: luisplata/DiasFestivosColombia
License
The MIT License (MIT). Please see License File for more information.