PHPackages                             wyrihaximus/constants - 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. wyrihaximus/constants

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

wyrihaximus/constants
=====================

Collection of constants for PHP

1.6.0(5y ago)4798.2k↓16.5%[3 PRs](https://github.com/WyriHaximus/php-constants/pulls)8MITPHPPHP ^8 || ^7 || ^5.3CI passing

Since Sep 21Pushed 8mo ago2 watchersCompare

[ Source](https://github.com/WyriHaximus/php-constants)[ Packagist](https://packagist.org/packages/wyrihaximus/constants)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/wyrihaximus-constants/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (20)Used By (8)

php-constants
=============

[](#php-constants)

[![Build Status](https://camo.githubusercontent.com/67cdfa3969b1c1a5f4957d1754e98533ccb7939874cfaae712a3cc9ed5cf2846/68747470733a2f2f7472617669732d63692e636f6d2f57797269486178696d75732f7068702d636f6e7374616e74732e706e67)](https://travis-ci.com/WyriHaximus/php-constants)[![Latest Stable Version](https://camo.githubusercontent.com/d2847518c4fad7165c6b40e4014c9c500a5180788481094dd730e601091ebcc1/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f636f6e7374616e74732f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/constants)[![Total Downloads](https://camo.githubusercontent.com/ac7b23f44d979205b6957c224e2431fddd498a2e08a82c22a5c508cb15a7f0c4/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f636f6e7374616e74732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/constants)[![License](https://camo.githubusercontent.com/789257eeb6a57ed8003b8969d81a0433242119e0cba2fa4cff60b92cd2f7bb4e/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f636f6e7374616e74732f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/constants)

Collection of constants for PHP

Install
-------

[](#install)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `~`.

```
composer require wyrihaximus/constants

```

License
-------

[](#license)

Copyright 2019 [Cees-Jan Kiewiet](http://wyrihaximus.net/)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance43

Moderate activity, may be stable

Popularity40

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~39 days

Recently: every ~71 days

Total

12

Last Release

1998d ago

PHP version history (2 changes)1.0.0PHP ^7.0 || ^5.3

1.6.0PHP ^8 || ^7 || ^5.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (29 commits)")

---

Tags

constantscronhacktoberfestnumericphp

### Embed Badge

![Health badge](/badges/wyrihaximus-constants/health.svg)

```
[![Health](https://phpackages.com/badges/wyrihaximus-constants/health.svg)](https://phpackages.com/packages/wyrihaximus-constants)
```

PHPackages © 2026

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