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

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

micropackage/singleton
======================

Singleton implementation

1.1.1(4y ago)841.9k↓40%3GPL-3.0-or-laterPHPPHP &gt;=5.6

Since Jan 6Pushed 2y ago2 watchersCompare

[ Source](https://github.com/micropackage/singleton)[ Packagist](https://packagist.org/packages/micropackage/singleton)[ RSS](/packages/micropackage-singleton/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (3)

Singleton
=========

[](#singleton)

[![BracketSpace Micropackage](https://camo.githubusercontent.com/7a9f5ff780f859fdebce60d4e11572de05f86c42ef96b77967c24d7ea7d1e04b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f427261636b657453706163652d4d6963726f7061636b6167652d627269676874677265656e)](https://bracketspace.com)[![Latest Stable Version](https://camo.githubusercontent.com/13a29b48a2ec74edda6b892ba0bda1634a29f79ecbaa6640064bb9f651c9b772/68747470733a2f2f706f7365722e707567782e6f72672f6d6963726f7061636b6167652f73696e676c65746f6e2f762f737461626c65)](https://packagist.org/packages/micropackage/singleton)[![PHP from Packagist](https://camo.githubusercontent.com/c04e77beb5f0b5913f43f64132e2a5f2a9ab0217243b40fe38ddb91237544386/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d6963726f7061636b6167652f73696e676c65746f6e2e737667)](https://packagist.org/packages/micropackage/singleton)[![Total Downloads](https://camo.githubusercontent.com/f0270358a5706f7f0edb9f3dfcd3c400f04c05871efb0aad9f7ef0fea8c43f5c/68747470733a2f2f706f7365722e707567782e6f72672f6d6963726f7061636b6167652f73696e676c65746f6e2f646f776e6c6f616473)](https://packagist.org/packages/micropackage/singleton)[![License](https://camo.githubusercontent.com/25d8fb757c598ec4a50e9efade0bcd6d65f1f933821adeb3314bffe553b7d111/68747470733a2f2f706f7365722e707567782e6f72672f6d6963726f7061636b6167652f73696e676c65746f6e2f6c6963656e7365)](https://packagist.org/packages/micropackage/singleton)

 [![Micropackage logo](https://camo.githubusercontent.com/9b9fc4f221b3683db4f9cc63e1ed92220004bbda118206d0a26d5ce6377d4d46/68747470733a2f2f627261636b657473706163652e636f6d2f6578747261732f6d6963726f7061636b6167652f6d6963726f7061636b6167652d736d616c6c2e706e67)](https://camo.githubusercontent.com/9b9fc4f221b3683db4f9cc63e1ed92220004bbda118206d0a26d5ce6377d4d46/68747470733a2f2f627261636b657473706163652e636f6d2f6578747261732f6d6963726f7061636b6167652f6d6963726f7061636b6167652d736d616c6c2e706e67)

💾 Installation
--------------

[](#-installation)

```
composer require micropackage/singleton
```

🕹 Usage
-------

[](#-usage)

```
use Micropackage\Singleton\Singleton;

class Example extends Singleton {}

Example::get();
```

📦 About the Micropackage project
--------------------------------

[](#-about-the-micropackage-project)

Micropackages - as the name suggests - are micro packages with a tiny bit of reusable code, helpful particularly in WordPress development.

The aim is to have multiple packages which can be put together to create something bigger by defining only the structure.

Micropackages are maintained by [BracketSpace](https://bracketspace.com).

📖 Changelog
-----------

[](#-changelog)

[See the changelog file](./CHANGELOG.md).

📃 License
---------

[](#-license)

This software is released under MIT license. See the [LICENSE](./LICENSE) file for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.3% 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 ~375 days

Total

3

Last Release

1574d ago

### Community

Maintainers

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

---

Top Contributors

[![jakubmikita](https://avatars.githubusercontent.com/u/18362490?v=4)](https://github.com/jakubmikita "jakubmikita (17 commits)")[![szaleq](https://avatars.githubusercontent.com/u/25011639?v=4)](https://github.com/szaleq "szaleq (5 commits)")

---

Tags

bracketspacecomposer-librarymicropackagesingletonwordpress

### Embed Badge

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

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

PHPackages © 2026

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