PHPackages                             portavice/public-holidays-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. portavice/public-holidays-calculator

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

portavice/public-holidays-calculator
====================================

A calculator for public holidays written in PHP

v1.1.0(1y ago)16.6k↓50%GPL-3.0-or-laterPHPPHP ^8.1CI passing

Since Mar 27Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/portavice/public-holidays-calculator)[ Packagist](https://packagist.org/packages/portavice/public-holidays-calculator)[ Docs](https://portavice.de)[ RSS](/packages/portavice-public-holidays-calculator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Calculate with Public Holidays in PHP
=====================================

[](#calculate-with-public-holidays-in-php)

[![PHP from Packagist](https://camo.githubusercontent.com/e2c9a5ad2ff2f771a5b7348792d4156c461b9cd1057e5c855650d6e34bc77970/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706f727461766963652f7075626c69632d686f6c69646179732d63616c63756c61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/portavice/public-holidays-calculator)[![Test Status](https://camo.githubusercontent.com/d6b1f025e63c40ce1cd027f20ceb71fe48e404263960e06f0fae06e5b2a42bd8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706f727461766963652f7075626c69632d686f6c69646179732d63616c63756c61746f722f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://camo.githubusercontent.com/d6b1f025e63c40ce1cd027f20ceb71fe48e404263960e06f0fae06e5b2a42bd8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706f727461766963652f7075626c69632d686f6c69646179732d63616c63756c61746f722f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)[![Code Style Status](https://camo.githubusercontent.com/ee69418bb080b8c1580111f1ca8b20e36542bf81210d0b89ad8377b3bd63c1cc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706f727461766963652f7075626c69632d686f6c69646179732d63616c63756c61746f722f636f64652d7374796c652e796d6c3f6272616e63683d6d61696e266c6162656c3d436f64652532305374796c65)](https://camo.githubusercontent.com/ee69418bb080b8c1580111f1ca8b20e36542bf81210d0b89ad8377b3bd63c1cc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706f727461766963652f7075626c69632d686f6c69646179732d63616c63756c61746f722f636f64652d7374796c652e796d6c3f6272616e63683d6d61696e266c6162656c3d436f64652532305374796c65)[![Latest Version on Packagist](https://camo.githubusercontent.com/4dc148eabb8732bcbb19c9bca841334188772da7f36f23796264084b7753168f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f727461766963652f7075626c69632d686f6c69646179732d63616c63756c61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/portavice/public-holidays-calculator)[![Total Downloads](https://camo.githubusercontent.com/c3bb0859c29d92a1a32e104d851f903da0b4d12ef50a43d6e53624f72763c81b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f727461766963652f7075626c69632d686f6c69646179732d63616c63756c61746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/portavice/public-holidays-calculator)

This package allows you to calculate with public holidays and working days in PHP based on an extension of the [Carbon](https://github.com/briannesbitt/Carbon) library.

Usage
-----

[](#usage)

### Installation

[](#installation)

To install this package with [Composer](https://getcomposer.org/):

```
composer require portavice/public-holidays-calculator
```

### Use the `Carbon` extension

[](#use-the-carbon-extension)

```
