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

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

phptailors/singleton-interface
==============================

Singleton Interface

1.0.1(3mo ago)0910↓90%1PHPPHP &gt;=8.0CI passing

Since Mar 27Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/phptailors/singleton-interface)[ Packagist](https://packagist.org/packages/phptailors/singleton-interface)[ RSS](/packages/phptailors-singleton-interface/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (4)Used By (1)

[![PHPUnit](https://github.com/phptailors/singleton-interface/actions/workflows/phpunit.yml/badge.svg)](https://github.com/phptailors/singleton-interface/actions/workflows/phpunit.yml)[![Composer Require Checker](https://github.com/phptailors/singleton-interface/actions/workflows/composer-require-checker.yml/badge.svg)](https://github.com/phptailors/singleton-interface/actions/workflows/composer-require-checker.yml)[![BC Check](https://github.com/phptailors/singleton-interface/actions/workflows/backward-compatibility-check.yml/badge.svg)](https://github.com/phptailors/singleton-interface/actions/workflows/backward-compatibility-check.yml)[![Psalm](https://github.com/phptailors/singleton-interface/actions/workflows/psalm.yml/badge.svg)](https://github.com/phptailors/singleton-interface/actions/workflows/psalm.yml)[![PHP CS Fixer](https://github.com/phptailors/singleton-interface/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/phptailors/singleton-interface/actions/workflows/php-cs-fixer.yml)

phptailors/singleton-interface
==============================

[](#phptailorssingleton-interface)

A PHP Interface for [Singletons](https://refactoring.guru/design-patterns/singleton/). See [SingletonInterface](https://github.com/phptailors/singleton-interface/blob/master/src/SingletonInterface.php).

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

[](#installation)

```
composer require --dev "phptailors/singleton-interface:^1.0"
composer require --dev "phpunit/phpunit"
```

Usage
-----

[](#usage)

A minimal implementation (example):

```
