PHPackages                             websecret/opening-hours-calculator - 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. websecret/opening-hours-calculator

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

websecret/opening-hours-calculator
==================================

Useful calculations based on opening hours

v1.0.7(6y ago)2392MITPHPPHP ^7.0CI failing

Since Aug 1Pushed 6y ago7 watchersCompare

[ Source](https://github.com/websecret/opening-hours-calculator)[ Packagist](https://packagist.org/packages/websecret/opening-hours-calculator)[ Docs](https://github.com/websecret/opening-hours-calculator)[ RSS](/packages/websecret-opening-hours-calculator/feed)WikiDiscussions master Synced today

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

Opening Hours Calculator
========================

[](#opening-hours-calculator)

[![](https://camo.githubusercontent.com/bf145b0037e1d79cc706e3e3d9004c734fb81733ffe45a2e4e431ddb91ed79dd/68747470733a2f2f7765627365637265742e62792f696d616765732f6c6f676f2d6769746875622e706e67)](https://websecret.by)

[![Licence](https://camo.githubusercontent.com/ef5b59ada4f12bb5a3dc4f948e83be4f8914189d6b2fb526869160e586f49e69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c6174)](https://packagist.org/packages/websecret/opening-hours-calculator)[![Build Status](https://camo.githubusercontent.com/e5a6788aaecd945adb1f3a5a4b3bcd681f980b59dc73274ef3dac675a7883dcc/68747470733a2f2f7472617669732d63692e6f72672f7765627365637265742f6f70656e696e672d686f7572732d63616c63756c61746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/websecret/opening-hours-calculator)

This package is a handy wrapper around [Opening Hours](https://github.com/spatie/opening-hours) package that gives you ability to calculate opened hours between two dates.

Examples
--------

[](#examples)

[Tests](https://github.com/websecret/opening-hours-calculator/blob/master/tests/OpeningHoursCalculatorTest.php) are the best source of examples.

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

[](#installation)

You can install the package via composer:

```
composer require websecret/opening-hours-calculator
```

Testing
-------

[](#testing)

```
$ composer test
```

Credits
-------

[](#credits)

- [Nikita Tolkachev](https://github.com/n7olkachev)

Sponsored by
------------

[](#sponsored-by)

Web agency based in Minsk, Belarus

License
-------

[](#license)

The MIT License (MIT)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~86 days

Recently: every ~150 days

Total

8

Last Release

2240d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/6e1acc077f0bc892f33bf7f5970a0672cceb1b852502b38c0ddbaceec37c75af?d=identicon)[nedba](/maintainers/nedba)

---

Top Contributors

[![n7olkachev](https://avatars.githubusercontent.com/u/3993345?v=4)](https://github.com/n7olkachev "n7olkachev (6 commits)")[![nedba](https://avatars.githubusercontent.com/u/16411175?v=4)](https://github.com/nedba "nedba (1 commits)")

---

Tags

phpopening-hoursworking-timewebsecret

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/websecret-opening-hours-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/websecret-opening-hours-calculator/health.svg)](https://phpackages.com/packages/websecret-opening-hours-calculator)
```

###  Alternatives

[hyperf/crontab

A crontab component for Hyperf.

131.6M62](/packages/hyperf-crontab)

PHPackages © 2026

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