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

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

g4/constants
============

G4 constants that are used for all day stuff and this is good way to organize them

0.7.3(1y ago)175.4k↓29.6%68MITPHPPHP &gt;=5.6

Since Jul 9Pushed 1y ago11 watchersCompare

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

READMEChangelog (4)DependenciesVersions (48)Used By (8)

Const
=====

[](#const)

> Const - G4 Constants package, convenient way to organize everyday stuff in some logical classes

Install
-------

[](#install)

> Using Composer and Packagist

```
composer require g4/const
```

Development
-----------

[](#development)

### Install dependencies

[](#install-dependencies)

```
$ make install

```

### Run tests

[](#run-tests)

```
$ make test

```

License
-------

[](#license)

(The MIT License) see LICENSE file for details...

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance43

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community31

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~547 days

Total

46

Last Release

451d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.4

0.7.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/12ceafbc629c3019d7cd78dfec322d694f44e0df8741bc6044f4acbf99964ff8?d=identicon)[g4code](/maintainers/g4code)

---

Top Contributors

[![gomboc](https://avatars.githubusercontent.com/u/1145653?v=4)](https://github.com/gomboc "gomboc (21 commits)")[![dsamardzija](https://avatars.githubusercontent.com/u/366252?v=4)](https://github.com/dsamardzija "dsamardzija (12 commits)")[![ivankoni](https://avatars.githubusercontent.com/u/570997?v=4)](https://github.com/ivankoni "ivankoni (12 commits)")[![zeljkosbgd](https://avatars.githubusercontent.com/u/4016203?v=4)](https://github.com/zeljkosbgd "zeljkosbgd (7 commits)")[![ppavlovic](https://avatars.githubusercontent.com/u/2664974?v=4)](https://github.com/ppavlovic "ppavlovic (6 commits)")[![sanjamedic](https://avatars.githubusercontent.com/u/13198949?v=4)](https://github.com/sanjamedic "sanjamedic (5 commits)")[![vladan-zoricic](https://avatars.githubusercontent.com/u/195801?v=4)](https://github.com/vladan-zoricic "vladan-zoricic (3 commits)")[![sinisalackovic](https://avatars.githubusercontent.com/u/25299913?v=4)](https://github.com/sinisalackovic "sinisalackovic (2 commits)")[![rdohms](https://avatars.githubusercontent.com/u/94331?v=4)](https://github.com/rdohms "rdohms (1 commits)")[![UrosPur](https://avatars.githubusercontent.com/u/16914618?v=4)](https://github.com/UrosPur "UrosPur (1 commits)")[![kuridza](https://avatars.githubusercontent.com/u/7287094?v=4)](https://github.com/kuridza "kuridza (1 commits)")[![jopacicdev](https://avatars.githubusercontent.com/u/2921997?v=4)](https://github.com/jopacicdev "jopacicdev (1 commits)")[![mirko-bukilic](https://avatars.githubusercontent.com/u/76707321?v=4)](https://github.com/mirko-bukilic "mirko-bukilic (1 commits)")[![draganavujkov](https://avatars.githubusercontent.com/u/136436617?v=4)](https://github.com/draganavujkov "draganavujkov (1 commits)")

---

Tags

constants

### Embed Badge

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

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

###  Alternatives

[rexlabs/enum

Enumeration (enum) implementation for PHP

48482.2k2](/packages/rexlabs-enum)[php-stubs/wordpress-globals

Global variables and global constants from WordPress core.

13799.0k17](/packages/php-stubs-wordpress-globals)

PHPackages © 2026

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