Best laravel framework open-source packages.

Carbon colombia

Extensión de Carbon para tratar con los festivos (Días hábiles).
Updated 4 years ago

carbon-colombia

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.

Tags carbon php