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

ActiveLibrary

salamwaddah/constants
=====================

All PHP common constants, a collection of redundant constants you can use in PHP.

1.3.0(3y ago)411.4k↓34.1%[3 issues](https://github.com/salamwaddah/constants/issues)MITPHPPHP &gt;=7.1

Since Dec 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/salamwaddah/constants)[ Packagist](https://packagist.org/packages/salamwaddah/constants)[ RSS](/packages/salamwaddah-constants/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (12)Used By (0)

PHP Constants
=============

[](#php-constants)

Statically access a set of common PHP constants for your PHP application.

[![Latest Version on Packagist](https://camo.githubusercontent.com/fb5b7e20fc83dafd430e11d219510c78b277f900f9e6a6e24b41efa80be5d695/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616c616d7761646461682f636f6e7374616e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salamwaddah/constants)[![Total Downloads](https://camo.githubusercontent.com/615462e63d134d65351b03b0ed612d5105fad9c0e4bae5348b4e7018badd529b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616c616d7761646461682f636f6e7374616e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salamwaddah/constants)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

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

[](#installation)

```
composer require salamwaddah/constants
```

Constant categories
-------------------

[](#constant-categories)

- Calendar
    - [Months](src/Calendar/Months.php)
    - [Time](src/Calendar/Time.php)
    - [Timezones](src/Calendar/Timezones.php)
- Development
    - [Console colors](src/Development/ConsoleColors.php)
    - [Environments](src/Development/Environments.php)
    - [Regex](src/Development/Regex.php)
    - [Statuses](src/Development/Statuses.php)
- Finance
    - [Credit Cards](src/Finance/CreditCards.php)
- Http
    - [Codes](src/Http/Codes.php)
    - [Content Types](src/Http/ContentTypes.php)
    - [Methods](src/Http/Methods.php)
- Location
    - [American States](src/Location/AmericanStates.php)
- Media
    - [File extensions](src/Media/FileExtensions.php)
- Web
    - [Browsers](src/Web/Browsers.php)

#### Credits

[](#credits)

This package is made and inspired from a combination of MIT open source packages as well as personal efforts. Please open a pull request if you need to add your credits.

-
-
-
-
-
-

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Every ~19 days

Recently: every ~35 days

Total

11

Last Release

1419d ago

Major Versions

0.0.0 → 1.0.02021-12-13

### Community

Maintainers

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

---

Top Contributors

[![salamwaddah](https://avatars.githubusercontent.com/u/26627088?v=4)](https://github.com/salamwaddah "salamwaddah (25 commits)")

---

Tags

constantsphpphpconstants

### Embed Badge

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

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

###  Alternatives

[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)

PHPackages © 2026

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