PHPackages                             merophp/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. [Framework](/categories/framework)
4. /
5. merophp/singleton

ActiveLibrary[Framework](/categories/framework)

merophp/singleton
=================

Implementation of the singleton pattern for the Merophp Framework

0.1-alpha(4y ago)0431↓62.5%2MITPHPPHP &gt;=7.4

Since Dec 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Merophp/singleton)[ Packagist](https://packagist.org/packages/merophp/singleton)[ RSS](/packages/merophp-singleton/feed)WikiDiscussions dev Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (2)

Introduction
============

[](#introduction)

Singleton class for the Merophp Framework.

Installation
------------

[](#installation)

Via composer:

`composer require merophp/singleton`Basic Usage
-----------

[](#basic-usage)

```
use Merophp\Singleton\Singleton;
use Merophp\Singleton\SingletonTrait;
use Merophp\Singleton\SingletonInterface;

class MySingleton extends Singleton
{
}

$mySingleton = MySingleton::getInstance();

//or use the singleton trait

class MySecondSingleton extends SingletonInterface
{
   use SingletonTrait;
}

$mySecondSingleton = MySecondSingleton::getInstance();

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

1655d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f873869f98cb1bdf9edb5847f987dfd216e5bc44f934d87875dca5ee20fbefb?d=identicon)[Robert.Becker](/maintainers/Robert.Becker)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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