Download the PHP package web6/singleton without Composer
On this page you can find all versions of the php package web6/singleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download web6/singleton
More information about web6/singleton
Files in web6/singleton
Download web6/singleton
More information about web6/singleton
Files in web6/singleton
Vendor web6
Package singleton
Short Description PHP Singleton design pattern
License GPL-3.0-or-later
Package singleton
Short Description PHP Singleton design pattern
License GPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package singleton
WEB6 PHP Singleton Trait
Implementation of singleton design pattern in PHP5.4+ using a trait.
Install
Install via Composer
Usage
Configure autoload
Configure autoloading by including Composer's generated file :
Create a singleton class
To create a singleton class simply use the W6\Sinfleton\SingletonTrait
and move the __construct()
logic to the init()
method.
Use your class
Anywhere in your application you can request the same instance of the class.
All versions of singleton with dependencies
PHP Build Version
Package Version
No informations.
The package web6/singleton contains the following files
Loading the files please wait ....