PHPackages                             php-common-enums/hour-of-day - 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. php-common-enums/hour-of-day

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

php-common-enums/hour-of-day
============================

Provides a backed enum for hours of a day

v1.0.0(3y ago)17MITPHPPHP ^8.1

Since Jun 2Pushed 3y agoCompare

[ Source](https://github.com/php-common-enums/hour-of-day)[ Packagist](https://packagist.org/packages/php-common-enums/hour-of-day)[ RSS](/packages/php-common-enums-hour-of-day/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Hour Of Day Enum
================

[](#hour-of-day-enum)

Provides a backed enum for hours of the day.

### Prerequisites

[](#prerequisites)

Since [backed enumerations](https://www.php.net/manual/en/language.enumerations.backed.php) were introduced in PHP 8.1, you will need at least that version of PHP.

### Installing

[](#installing)

```
$ composer require php-common-enums/hour-of-day
```

Contributing
------------

[](#contributing)

Please read [CODE\_OF\_CONDUCT.md](https://github.com/php-common-enums/proposed-enums/blob/main/CODE_OF_CONDUCT.md) for details on our code of conduct.

Please read [CONTRIBUTING.md](https://github.com/php-common-enums/proposed-enums/blob/main/CONTRIBUTING.md) for details on the process for submitting pull requests and/or new backed enums to us.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/php-common-enums/hour-of-day/tags).

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](https://github.com/php-common-enums/proposed-enums/blob/main/LICENSE) file for details

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

1440d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/177d7a578364350db5f97944ec318a65a2c7575c5d1747eeee9f7dc1e3c1dc54?d=identicon)[php-common-enums](/maintainers/php-common-enums)

---

Top Contributors

[![gnito-org](https://avatars.githubusercontent.com/u/70450336?v=4)](https://github.com/gnito-org "gnito-org (2 commits)")

---

Tags

enum

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-common-enums-hour-of-day/health.svg)

```
[![Health](https://phpackages.com/badges/php-common-enums-hour-of-day/health.svg)](https://phpackages.com/packages/php-common-enums-hour-of-day)
```

###  Alternatives

[myclabs/php-enum

PHP Enum implementation

2.7k227.9M637](/packages/myclabs-php-enum)[dasprid/enum

PHP 7.1 enum implementation

379146.0M11](/packages/dasprid-enum)[spatie/enum

PHP Enums

84429.1M68](/packages/spatie-enum)[marc-mabe/php-enum

Simple and fast implementation of enumerations with native PHP

49444.8M97](/packages/marc-mabe-php-enum)[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[consistence/consistence

Consistence - consistent approach and additions to PHP's functionality

1831.1M18](/packages/consistence-consistence)

PHPackages © 2026

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