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

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

sincco/singleton
================

Simplifies the use of singleton pattern on PHP

1.0(9y ago)1169MITPHPPHP ^5.3.3 || ^7.0

Since Jun 1Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

singleton
=========

[](#singleton)

Simplifies the use of singleton pattern on PHP.

\##Installation

To add this package as a local, per-project dependency to your project, simply add a dependency on your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on Singleton:

```
{
    "require": {
        "sincco/singleton": "dev-master"
    }
}
```

\##Use

#### NOTICE OF LICENSE

[](#notice-of-license)

This source file is subject to the Open Software License (OSL 3.0) that is available through the world-wide-web at this URL:

**Happy coding!**

- [ivan miranda](http://ivanmiranda.me)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3633d ago

### Community

Maintainers

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

---

Tags

classsingletonsinccosfphp

### Embed Badge

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

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

###  Alternatives

[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89152.7M321](/packages/nette-robot-loader)[classpreloader/classpreloader

Helps class loading performance by generating a single PHP file containing all of the autoloaded files for a specific use case

37642.4M32](/packages/classpreloader-classpreloader)[yzen.dev/plain-to-class

Class-transformer to transform your dataset into a structured object

16293.9k6](/packages/yzendev-plain-to-class)[ph-7/qrcode-generator-php-class

Light QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart AP

10415.5k2](/packages/ph-7-qrcode-generator-php-class)[florianwolters/component-util-singleton

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

13175.8k5](/packages/florianwolters-component-util-singleton)[classpreloader/console

Helps class loading performance by generating a single PHP file containing all of the autoloaded files for a specific use case

10235.0k5](/packages/classpreloader-console)

PHPackages © 2026

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