Download the PHP package merophp/singleton without Composer
On this page you can find all versions of the php package merophp/singleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download merophp/singleton
More information about merophp/singleton
Files in merophp/singleton
Download merophp/singleton
More information about merophp/singleton
Files in merophp/singleton
Vendor merophp
Package singleton
Short Description Implementation of the singleton pattern for the Merophp Framework
License MIT
Package singleton
Short Description Implementation of the singleton pattern for the Merophp Framework
License MIT
Please rate this library. Is it a good library?
Informations about the package singleton
Introduction
Singleton class for the Merophp Framework.
Installation
Via composer:
composer require merophp/singleton
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();
All versions of singleton with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package merophp/singleton contains the following files
Loading the files please wait ....