PHPackages                             fwolf/singleton - 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. fwolf/singleton

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

fwolf/singleton
===============

Singleton and SingleInstance trait

v1.0(9y ago)06042MITPHPPHP &gt;=5.5.0

Since Sep 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/fwolf/singleton.php)[ Packagist](https://packagist.org/packages/fwolf/singleton)[ RSS](/packages/fwolf-singleton/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (2)

Singleton and SingleInstance Trait
==================================

[](#singleton-and-singleinstance-trait)

[![Travis](https://camo.githubusercontent.com/b0a69adb6e075a067d585f8db7a280bbd208c2bc86923ba8d588832604193319/68747470733a2f2f7472617669732d63692e6f72672f66776f6c662f73696e676c65746f6e2e7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fwolf/singleton.php)[![Latest Stable Version](https://camo.githubusercontent.com/c8a865c3993b3de05bbc9cafc656918a166a3830e8295fb31892e0a8855b50d8/68747470733a2f2f706f7365722e707567782e6f72672f66776f6c662f73696e676c65746f6e2f762f737461626c652e737667)](https://packagist.org/packages/fwolf/singleton)[![License](https://camo.githubusercontent.com/823efe7842fbe964f01f0d84ed1caad0a4fd0a8841a872c07af0fce0afa4752e/68747470733a2f2f706f7365722e707567782e6f72672f66776f6c662f73696e676c65746f6e2f6c6963656e73652e737667)](https://packagist.org/packages/fwolf/singleton)[![SensioLabsInsight](https://camo.githubusercontent.com/194f4a15c15e1d2a9abddb1d8bf8fdea407aafd6387f65927e9848a3b09ecca9/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65376639373361332d613732622d343436622d386237372d3137613734373537326437332f6d696e692e706e67)](https://insight.sensiolabs.com/projects/e7f973a3-a72b-446b-8b77-17a747572d73)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8d677a6021923e6b8aa9001773ae5b8a9e2c64865b839bf3573f429dc1a581e7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66776f6c662f73696e676c65746f6e2e7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/fwolf/singleton.php/?branch=master)

Usage
-----

[](#usage)

Use these trait in needed class.

License
-------

[](#license)

Distribute under MIT License.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3573d ago

### Community

Maintainers

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

---

Top Contributors

[![fwolf](https://avatars.githubusercontent.com/u/67877?v=4)](https://github.com/fwolf "fwolf (9 commits)")

---

Tags

singleton

### Embed Badge

![Health badge](/badges/fwolf-singleton/health.svg)

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

###  Alternatives

[florianwolters/component-util-singleton

The Singleton (and Registry of Singletons a.k.a. Multiton) design pattern as a PHP component.

13179.3k5](/packages/florianwolters-component-util-singleton)

PHPackages © 2026

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