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 3d 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 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

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

2971d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0738aec8b95f89e50242b08346351e1b0bb5a6032b3630450a8fa0de1ee907e9?d=identicon)[msbytes](/maintainers/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

[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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