PHPackages                             springy-framework/business-days-calculator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. springy-framework/business-days-calculator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

springy-framework/business-days-calculator
==========================================

PHP class for calculate business days for given date

v1.0.2(5mo ago)111MITPHPPHP &gt;=8.1CI passing

Since Dec 5Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/springy-framework/business-days-calculator)[ Packagist](https://packagist.org/packages/springy-framework/business-days-calculator)[ RSS](/packages/springy-framework-business-days-calculator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

PHP Business Days Calculator
============================

[](#php-business-days-calculator)

This class can get the business days after today or a given date.

It can take as parameter a given date that will be taken as a reference.

The class can return one or more dates of the next business days after the given date considering the weekends and the regular holiday dates like Christmas, Easter, Corpus Christi, etc..

Optionally the class can also consider business days of specific countries like Brazil.

[![Latest Stable Version](https://camo.githubusercontent.com/eb3dfe18f00fac8c05d80d4300cde326d230ee676f53e21e27cbbcc33ca7d8e5/68747470733a2f2f706f7365722e707567782e6f72672f737072696e67792d6672616d65776f726b2f627573696e6573732d646179732d63616c63756c61746f722f762f737461626c65)](https://packagist.org/packages/springy-framework/business-days-calculator)[![tests](https://github.com/springy-framework/business-days-calculator/actions/workflows/php.yml/badge.svg)](https://github.com/springy-framework/business-days-calculator/actions/workflows/php.yml)[![PHPStan](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)[![Total Downloads](https://camo.githubusercontent.com/e59c5e594b612e895f458d3f2a928a0bc709a357ff02326b264a47a9333a026f/68747470733a2f2f706f7365722e707567782e6f72672f737072696e67792d6672616d65776f726b2f627573696e6573732d646179732d63616c63756c61746f722f646f776e6c6f616473)](https://packagist.org/packages/springy-framework/business-days-calculator)[![License](https://camo.githubusercontent.com/1c93d06d8169e01c2601e6ef71179e74f2b53c5b508285bdc4c0a8b08788342d/68747470733a2f2f706f7365722e707567782e6f72672f737072696e67792d6672616d65776f726b2f627573696e6573732d646179732d63616c63756c61746f722f6c6963656e7365)](https://packagist.org/packages/springy-framework/business-days-calculator)

Requirements
------------

[](#requirements)

- PHP 8.1+

Instalation
-----------

[](#instalation)

To get the latest stable version of this component use:

```
"require": {
    "springy-framework/business-days-calculator": "*"
}
```

in your composer.json file.

Usage
-----

[](#usage)

I suppose that the following example is all you need:

```
