PHPackages                             cmixin/business-time - 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. cmixin/business-time

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

cmixin/business-time
====================

Carbon mixin to handle business days and opening hours

2.0.0(6mo ago)3171.3M—9.6%141MITPHPPHP &gt;=7.1CI passing

Since Nov 1Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/kylekatarnls/business-time)[ Packagist](https://packagist.org/packages/cmixin/business-time)[ Fund](https://opencollective.com/Carbon)[ Fund](https://tidelift.com/funding/github/packagist/nesbot/carbon)[ RSS](/packages/cmixin-business-time/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (30)Used By (1)

business-time
=============

[](#business-time)

[Carbon](https://carbon.nesbot.com/) mixin to handle business days and opening hours

[![Latest Stable Version](https://camo.githubusercontent.com/a89ae8a66701992c284e8e4e972c18260db196b6b7a9b164ba739f3011f40dc4/68747470733a2f2f706f7365722e707567782e6f72672f636d6978696e2f627573696e6573732d74696d652f762f737461626c652e706e67)](https://packagist.org/packages/cmixin/business-time)[![GitHub Actions](https://github.com/kylekatarnls/business-time/workflows/Tests/badge.svg)](https://github.com/kylekatarnls/business-time/actions)[![Code Climate](https://camo.githubusercontent.com/d298628e236864fef417e648cba691e6879dd5ab3b04b0221ef5a3a0d5513ca9/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6b796c656b617461726e6c732f627573696e6573732d74696d652f6261646765732f6770612e737667)](https://codeclimate.com/github/kylekatarnls/business-time)[![Test Coverage](https://camo.githubusercontent.com/26f77881fce5473200084d644a91b3259ed4c1c6814c9a1d707dfe668ab03d8e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6b796c656b617461726e6c732f627573696e6573732d74696d652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/kylekatarnls/business-time/coverage)[![StyleCI](https://camo.githubusercontent.com/a1e9a65e0fec91ed4c65658ec3014866f4896a52ebf94fe4778e896a7e9cc4e7/68747470733a2f2f7374796c6563692e696f2f7265706f732f3135353336383735362f736869656c643f6272616e63683d6d6173746572267374796c653d666c6174)](https://styleci.io/repos/155368756)

[Professionally supported nesbot/carbon is now available](https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme)

Install
-------

[](#install)

```
composer require cmixin/business-time
```

Usage
-----

[](#usage)

First load the mixin in some global bootstrap place of your app:

```
