PHPackages                             mouf/utils.constants.secret - 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. mouf/utils.constants.secret

ActiveMouf-library[Utility &amp; Helpers](/categories/utility)

mouf/utils.constants.secret
===========================

This package contains a simple installer for Mouf that will create a constant 'SECRET' in your project and initialize it to some random value.

v1.0.0(12y ago)0377.3k↓33.3%8MITPHPPHP &gt;=5.3.0

Since Nov 5Pushed 11y ago10 watchersCompare

[ Source](https://github.com/thecodingmachine/utils.constants.secret)[ Packagist](https://packagist.org/packages/mouf/utils.constants.secret)[ Docs](https://mouf-php.com/packages/mouf/utils.constants.secret)[ RSS](/packages/mouf-utilsconstantssecret/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (8)

What is this package
====================

[](#what-is-this-package)

Many packages need the project hosting them to have some secret key or some unique key. For instance, you can use this key to prefix your cache keys if you cache system is shared with other applications.

This package contains a Mouf installer that will create a `SECRET` constant in your `config.php` and initialize it to some random value each time you install the application.

Mouf package
------------

[](#mouf-package)

This package is part of Mouf (), an effort to ensure good developing practices by providing a graphical dependency injection framework.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

2

Last Release

4577d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (3 commits)")[![vaidiep](https://avatars.githubusercontent.com/u/2227695?v=4)](https://github.com/vaidiep "vaidiep (1 commits)")

---

Tags

randommoufsecret

### Embed Badge

![Health badge](/badges/mouf-utilsconstantssecret/health.svg)

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

###  Alternatives

[paragonie/random_compat

PHP 5.x polyfill for random\_bytes() and random\_int() from PHP 7

8.2k655.0M405](/packages/paragonie-random-compat)[ircmaxell/random-lib

A Library For Generating Secure Random Numbers

84130.2M119](/packages/ircmaxell-random-lib)[mistic100/randomcolor

Generate attractive random colors

2431.4M6](/packages/mistic100-randomcolor)[pragmarx/random

Create random chars, numbers, strings

714.2M5](/packages/pragmarx-random)[paragonie/random-lib

A Library For Generating Secure Random Numbers

703.3M26](/packages/paragonie-random-lib)[nubs/random-name-generator

A library to create interesting, sometimes entertaining, random names.

135680.2k3](/packages/nubs-random-name-generator)

PHPackages © 2026

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