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

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

stefanius/singleton-pattern
===========================

Helper package to implement a Singleton class.

167PHP

Since Dec 24Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

\#Singleton Desing Pattern

[![Build Status](https://camo.githubusercontent.com/5c03b32edff85f14297b643af6f468b817ec76a786c4a8d77487856bdc4da3c6/68747470733a2f2f7472617669732d63692e6f72672f73746566616e6975732f73696e676c65746f6e2d7061747465726e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/stefanius/singleton-pattern)

\##Framework Agnostic This package is usable for any framework or even plain-PHP. So try this on your Laravel, Symfony, Zend or CakePHP project or any other PHP application or framework!

\##For (almost) every developer Traits, abstraction or a contract. This package is complete and ready to use for developers who has a favor for one of the implemented types.

- Do you like Traits? Good news! There is a trait in this package.
- Do you like extending abstract classes? Also for you good news! You just has to extend the abstract class!
- Are a fan of explicit contract (interfaces) to dictate the concrete class? Also this type of developer is served!

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/47f66133b6b4806a16aaed043daa733f5e97adb7a10c9982d01a1cda9f492040?d=identicon)[stefanius](/maintainers/stefanius)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[slack-php/slack-block-kit

OOP interface for writing Slack Block Kit messages and modals

55754.2k6](/packages/slack-php-slack-block-kit)[symfony/ux-map

Easily embed interactive maps in your Symfony application

18178.5k4](/packages/symfony-ux-map)

PHPackages © 2026

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