Download the PHP package petrknap/singleton without Composer
On this page you can find all versions of the php package petrknap/singleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download petrknap/singleton
More information about petrknap/singleton
Files in petrknap/singleton
Download petrknap/singleton
More information about petrknap/singleton
Files in petrknap/singleton
Vendor petrknap
Package singleton
Short Description Singleton pattern for PHP
License LGPL-3.0-or-later
Homepage https://github.com/petrknap/php-singleton
Package singleton
Short Description Singleton pattern for PHP
License LGPL-3.0-or-later
Homepage https://github.com/petrknap/php-singleton
Please rate this library. Is it a good library?
Informations about the package singleton
Singleton pattern for PHP
Simple implementation of singleton (anti-)pattern.
Why use a singleton?
Because it can solve deadlocks and other problems. See this example:
You cannot create two instances at the same time with this code...
...so simply convert it into singleton...
...and use the same instance twice.
Run composer require petrknap/singleton
to install it.
You can support this project via donation.
The project is licensed under the terms of the LGPL-3.0-or-later
.
All versions of singleton with dependencies
PHP Build Version
Package Version
The package petrknap/singleton contains the following files
Loading the files please wait ....