NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3064 most downloaded on Packagist
Carbon mixin to handle business days and opening hours
Latest stable
2.0.0
Last release 1 years ago
24 Oct 2025
Release timing varies
gaps range from 9 days to 1.3 years
Most releases are documented
notes for 25 of 29 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
29 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Stop using deprecated method if Carbon version is high enough
Full Changelog: https://github.com/kylekatarnls/business-time/compare/1.14.1...2.0.0
Fix PHP 8.4 deprecations by @calebdw in https://github.com/kylekatarnls/business-time/pull/78
Full Changelog: https://github.com/kylekatarnls/business-time/compare/1.14.0...1.14.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Allow "spatie/opening-hours" 4 by @Chris53897 in https://github.com/kylekatarnls/business-time/pull/76
Full Changelog: https://github.com/kylekatarnls/business-time/compare/1.13.1...1.14.0
Fix holiday handling in Schedule
Fix holiday handling in Schedule
Make first parameter optional for Schedule method calls
Make first parameter optional for Schedule method calls
Support region/with/without in Schedule
Support region/with/without in Schedule
Add Schedule class to handle multiple business instances
Fix passing local hours when calling ->setOpeningHours()
Fix passing local hours when calling ->setOpeningHours()
Skip instanciation if current date class match
Skip instanciation if current date class match
Fix holidays region loading via Laravel config file
Fix holidays region loading via Laravel config file
Nothing published for this version
Nothing published for this version
Fix diff method with local mode
Fix diff method with local mode
Fix enabling with classes array
Fix enabling with classes array
Add getCurrentOpenTimePeriod() method
Support open/close check using date string:
Carbon::isOpenOn('2020-07-04')Carbon::isClosedOn('2020-07-04')isOpenOn() with holidaysAreClosed option enabledFix add/sub time with local mode
Fix add/sub time with local mode
Fix Laravel config
New methods: - diffAsBusinessInterval - diffInBusinessUnit - diffInBusinessHours - diffInBusinessMinutes - diffInBusinessSeconds
Add option 'holidaysAreClosed' to automatically consider holidays (that are not in the exceptions list) as fully closed. See documentation
'holidaysAreClosed' to automatically consider holidays (that are not in the exceptions list) as fully closed. See documentationcurrentOr*, openOr* and closedOr* methods (currentOrNextOpen, openOrPreviousClose, closedOrPreviousOpen, etc.) See documentationaddOpenTime, addClosedHours, subOpenMinutes, etc.) See documentationRequirement upgrade: spatie/opening-hours ^2.0 => ^2.6
Requirement upgrade: spatie/opening-hours ^2.0 => ^2.6
New methods:
Allow to enable business-day globally in Laravel using config/carbon.php https://github.com/kylekatarnls/business-time#laravel
Allow to enable business-day globally in Laravel using config/carbon.php https://github.com/kylekatarnls/business-time#laravel
Add PHPDoc and IDE macro helpers
Set internal methods as private since protected are added as macros
Set internal methods as private since protected are added as macros
Handle $region and $holidays in enable() method
Nothing published for this version
Add getCurrentDayOpeningHours method
business-day extended mixin to add following methods:
business-day extended mixin to add following methods:
Nothing published for this version
One column per quarter.