Download the PHP package atekushi/singleton without Composer
On this page you can find all versions of the php package atekushi/singleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download atekushi/singleton
More information about atekushi/singleton
Files in atekushi/singleton
Download atekushi/singleton
More information about atekushi/singleton
Files in atekushi/singleton
Vendor atekushi
Package singleton
Short Description Small Library to Implement Singleton Pattern To Your Project
License MIT
Package singleton
Short Description Small Library to Implement Singleton Pattern To Your Project
License MIT
Please rate this library. Is it a good library?
Informations about the package singleton
What is Singleton?
The Singleton pattern is a design pattern that restricts the instantiation of a class to a single instance. It is commonly used to represent shared resources, such as configuration settings, logging services, or database connections.
Why Use it ?
- Ensures only one instance of a class is created.
- Supports lazy initialization (instance is created only when needed).
- Simple and easy-to-use API.
- Provides a utility method to check if a class follows the Singleton pattern.
Installation
Install the library via Composer:
Usage
Just extend the singleton class to your target class
All versions of singleton with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package atekushi/singleton contains the following files
Loading the files please wait ....