Download the PHP package petrknap/php-singleton without Composer
On this page you can find all versions of the php package petrknap/php-singleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download petrknap/php-singleton
More information about petrknap/php-singleton
Files in petrknap/php-singleton
Download petrknap/php-singleton
More information about petrknap/php-singleton
Files in petrknap/php-singleton
Vendor petrknap
Package php-singleton
Short Description Singleton pattern for PHP
License LGPL-3.0-or-later
Homepage https://github.com/petrknap/php-singleton
Package php-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 php-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 php-singleton with dependencies
PHP Build Version
Package Version
The package petrknap/php-singleton contains the following files
Loading the files please wait ....