mibadger/singleton

This package is abandoned and no longer maintained. No replacement package was suggested.

The Singleton Component

Installs: 1 383

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/mibadger/singleton

v3.0.0 2021-08-12 09:48 UTC

This package is auto-updated.

Last update: 2022-11-19 17:10:04 UTC


README

Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight

The Singleton Component.

Example

<?php

use miBadger\Singleton\SingletonTrait;

/**
 * The example class.
 */
class Example
{
	use SingletonTrait;
}
<?php

/**
 * Returns the only instance of the Singleton class.
 */
$singleton = Example::getInstance();