torreswil/carbon-colombia

Extension de nesbot/carbon, para trabajar con festivos de Colombia

dev-master 2019-11-21 16:35 UTC

This package is auto-updated.

Last update: 2024-05-22 02:28:21 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

License

The MIT License (MIT). Please see License File for more information.