Search by

zarbinco / laravel-workdays

zarbinco

Laravel-first workday and business-day calculation engine.

Package info

github.com/zarbinco/laravel-workdays

pkg:composer/zarbinco/laravel-workdays

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-10-21 00:26 UTC

This package is auto-updated.

Last update: 2026-10-21 00:32:04 UTC


README

Tests Packagist License

Calculate business days, working time and calendar-aware delivery dates in Laravel. Define separate calendars for teams, warehouses or carriers, using Gregorian, Jalali and Hijri holidays.

Supports PHP 8.2+ and Laravel 12 or 13, subject to the selected Laravel version's own PHP requirements. The changelog labels the current repository changes 1.0.0 — Unreleased; these guides describe this checkout, not a promise about an older published package.

Install and calculate

composer require zarbinco/laravel-workdays
php artisan vendor:publish --tag=workdays-config

In a Laravel application with the shipped global profile unchanged and the Config source selected:

use Zarbinco\LaravelWorkdays\Facades\Workday;

echo Workday::profile('global')->nextBusinessDay('2026-11-06')->toDateString(), PHP_EOL;
2026-11-09

Friday's next business day is Monday because this profile closes Saturday and Sunday. For a complete independent calendar definition, follow Getting started.

Documentation

English · فارسی

For contributors: architecture, capability and test matrix, numerical history, and verification.

Report issues through the issue tracker. Licensed under the MIT License.