PHPackages                             msbytes/laravel-workdays - 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. msbytes/laravel-workdays

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

msbytes/laravel-workdays
========================

Simple operations with working days for Laravel.

4.0.3(8y ago)1571MITPHPPHP &gt;=5.4.0

Since Mar 27Pushed 8y agoCompare

[ Source](https://github.com/msbytes/laravel-workdays)[ Packagist](https://packagist.org/packages/msbytes/laravel-workdays)[ RSS](/packages/msbytes-laravel-workdays/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Simple working days operations for Laravel
==========================================

[](#simple-working-days-operations-for-laravel)

- [Version Compatibility](#version-compatibility)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)

Version Compatibility
---------------------

[](#version-compatibility)

LaravelWorkdays4.x.x4.x.xInstallation
------------

[](#installation)

To install through composer, simply put the following in your `composer.json` file:

```
{
    "require-dev": {
        "msbytes/laravel-workdays": "^4.0"
    }
}
```

And then run `composer install` from the terminal.

### Quick Installation

[](#quick-installation)

Above installation can also be simplified by using the following command:

```
composer require --dev "msbytes/laravel-workdays=^4.0"

```

Usage
-----

[](#usage)

To use this package you need to prepare `HolidayProvider` for your country. It must implement `Msbytes\LaravelWorkdays\Contracts\HolidayProvider`. There is [PlHolidayProvider](src/Msbytes/LaravelWorkdays/PlHolidaysProvider.php) for Poland as an example.

Add workdays service provider to `app/config/app.php`.

```
return array(
	...
	'providers' => array(
		...
		'Msbytes\LaravelWorkdays\LaravelWorkdaysServiceProvider'
	),
	...
);
```

Easiest way is to just use provided `Workdays` facade.

Before making any operation or if you want to change country you need to set holiday provider for service.

```
$provider = new YourHolidayProvider();
Workdays::setHolidayProvider($provider);

```

Start using it (these examples are using holidays provider for Poland)

```
$check = Workdays::isWorkingDay('2018-03-27'); // true
$deliveryDate = Workdays::addWorkingDays('2018-03-27', 4); // 2018-04-03
$pastOrders = Workdays::substractWorkingDays('2018-03-27', 7); // 2018-03-16

```

License
-------

[](#license)

[MIT License](LICENSE)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

3019d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24713293?v=4)[Marcin Szlęk](/maintainers/msbytes)[@msbytes](https://github.com/msbytes)

---

Top Contributors

[![msbytes](https://avatars.githubusercontent.com/u/24713293?v=4)](https://github.com/msbytes "msbytes (2 commits)")

### Embed Badge

![Health badge](/badges/msbytes-laravel-workdays/health.svg)

```
[![Health](https://phpackages.com/badges/msbytes-laravel-workdays/health.svg)](https://phpackages.com/packages/msbytes-laravel-workdays)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M293](/packages/laravel-horizon)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
