Download the PHP package hametuha/singleton-pattern without Composer
On this page you can find all versions of the php package hametuha/singleton-pattern. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hametuha/singleton-pattern
More information about hametuha/singleton-pattern
Files in hametuha/singleton-pattern
Download hametuha/singleton-pattern
More information about hametuha/singleton-pattern
Files in hametuha/singleton-pattern
Vendor hametuha
Package singleton-pattern
Short Description PHP abstract singleton pattern.
License GPL-3.0-or-later
Package singleton-pattern
Short Description PHP abstract singleton pattern.
License GPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package singleton-pattern
singleton-pattern
PHP abstract singleton patter.
Installation
How to Use
Inherit from abstract class Hametuha\SingletonPattern\Singleton
.
Then, call it outside.
Bulk Registration
If you have PSR-0(or maybe PSR-4) based structure, you can bulk register them. For examle...
You can call BulkRegister::enable
to load them all!
Syntax is like below:
BulkRegister::enable( $namespace, $directory_to_scan, $subclass, $method )
$namespace
Name space prefix. In the case above,Vendor/Library\NameSpace
.$directory_to_scan
This directory will be scanned. Not recursively$subclasss
Class should be subclass of this class name. Defautl isHametuha\SingletonPattern\Singleton
.$method
Static method to call. Default isget_instance()
.
License
GPL 3.0 or later.
All versions of singleton-pattern with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package hametuha/singleton-pattern contains the following files
Loading the files please wait ....