PHPackages                             aa-engineering/laravel-workday-manager - 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. aa-engineering/laravel-workday-manager

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

aa-engineering/laravel-workday-manager
======================================

A Laravel package for managing workday modifications - holidays moved to workdays and vice versa

1.1.0(3d ago)0214—0%MITPHPPHP ^8.2|^8.3|^8.4

Since Oct 12Pushed 3d agoCompare

[ Source](https://github.com/AA-ENGINEERING-Kft/laravel-workday-manager)[ Packagist](https://packagist.org/packages/aa-engineering/laravel-workday-manager)[ RSS](/packages/aa-engineering-laravel-workday-manager/feed)WikiDiscussions main Synced today

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

Laravel Workday Manager
=======================

[](#laravel-workday-manager)

A Laravel package for managing workday modifications - holidays moved to workdays and vice versa.

Features
--------

[](#features)

- Track days when weekends/holidays become working days
- Track days when working days become holidays
- Simple API for checking workday status
- Laravel auto-discovery support
- Comprehensive test coverage

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require aa-engineering/laravel-workday-manager
```

Publish and run the migrations:

```
php artisan vendor:publish --tag="workday-manager-migrations"
php artisan migrate
```

Optionally, publish the config file:

```
php artisan vendor:publish --tag="workday-manager-config"
```

Usage
-----

[](#usage)

### Creating Moved Workdays

[](#creating-moved-workdays)

```
use AAEngineering\WorkdayManager\Models\MovedWorkday;
use Carbon\Carbon;

// A Saturday that becomes a working day
MovedWorkday::create([
    'day' => '2025-12-14',
    'type' => 'workday',
]);

// A Monday that becomes a holiday
MovedWorkday::create([
    'day' => '2025-12-24',
    'type' => 'holiday',
]);
```

### Checking Workday Status

[](#checking-workday-status)

```
use AAEngineering\WorkdayManager\WorkdayManager;
use Carbon\Carbon;

$date = Carbon::parse('2025-12-14');

// Check if a date has been changed to a holiday
if (WorkdayManager::isChangedToHoliday($date)) {
    // This working day is now a holiday
}

// Check if a date has been changed to a workday
if (WorkdayManager::isChangedToWorkday($date)) {
    // This weekend/holiday is now a working day
}

// Get the modification type (null, 'holiday', or 'workday')
$type = WorkdayManager::getModificationType($date);
```

### Using the Factory

[](#using-the-factory)

```
use AAEngineering\WorkdayManager\Models\MovedWorkday;

// Create a random moved workday
$movedWorkday = MovedWorkday::factory()->create();

// Create a weekend moved to workday
$workday = MovedWorkday::factory()->workday()->create();

// Create a workday moved to holiday
$holiday = MovedWorkday::factory()->holiday()->create();
```

Configuration
-------------

[](#configuration)

The package configuration file `config/workday-manager.php` allows you to customize:

- `load_migrations`: Whether to automatically load package migrations (default: `true`)

Testing
-------

[](#testing)

Run the package tests:

```
composer test
```

Laravel Compatibility
---------------------

[](#laravel-compatibility)

- Laravel 11.x
- Laravel 12.x

PHP Compatibility
-----------------

[](#php-compatibility)

- PHP 8.2
- PHP 8.3
- PHP 8.4

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance99

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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 ~158 days

Total

2

Last Release

3d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c8ae58c0fb75cd104818b3aff64ae766fb2cae07bdf54f5195bc052004931577?d=identicon)[AndrasMa](/maintainers/AndrasMa)

---

Top Contributors

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

---

Tags

laravelcalendarholidayworking daysbusiness daysworkday

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/aa-engineering-laravel-workday-manager/health.svg)

```
[![Health](https://phpackages.com/badges/aa-engineering-laravel-workday-manager/health.svg)](https://phpackages.com/packages/aa-engineering-laravel-workday-manager)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k120.0M583](/packages/barryvdh-laravel-ide-helper)[laraveljutsu/zap

A flexible, performant, and developer-friendly schedule management system for Laravel

1.4k54.4k](/packages/laraveljutsu-zap)[frittenkeez/laravel-vouchers

Voucher system for Laravel 9+

5818.8k1](/packages/frittenkeez-laravel-vouchers)

PHPackages © 2026

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