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

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

harishpatel143/constants
========================

This is a global constants package for the php framework.

44PHP

Since May 29Pushed 6y agoCompare

[ Source](https://github.com/harishpatel143/php-constants)[ Packagist](https://packagist.org/packages/harishpatel143/constants)[ RSS](/packages/harishpatel143-constants/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Constant
============

[](#php-constant)

```
This is gloablly used constant package in PHP.
You can simply install the package and use it in all over the application.

```

`Time Constant for Hour`

```
DAY_IN_HOUR
YEAR_IN_HOUR
```

`Time Constant for Minute`

```
HOUR_IN_MINUTES
DAY_IN_MINUTES
WEEK_IN_MINUTES
MONTH_IN_MINUTES
YEAR_IN_MINUTES
```

`Time Constant for Seconds`

```
MINUTE_IN_SECONDS
HOUR_IN_SECONDS
DAY_IN_SECONDS
WEEK_IN_SECONDS
MONTH_IN_SECONDS
YEAR_IN_SECONDS
```

`Color Constant`

```
VIOLET
INDIGO
BLUE
GREEN
YELLOW
ORANGE
RED
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/74aff87f1263b4c87488da7584c51745dc2050eeb393667ae49e26f5bba18ac2?d=identicon)[harishpatel143](/maintainers/harishpatel143)

---

Top Contributors

[![harishpatel143](https://avatars.githubusercontent.com/u/31433208?v=4)](https://github.com/harishpatel143 "harishpatel143 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[aryelds/yii2-sweet-alert

A widget to flash sweet alert messages using SweetAlert plugin

3016.9k](/packages/aryelds-yii2-sweet-alert)

PHPackages © 2026

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