| Recommend this page to a friend! |
| Info | Example | Reputation | Support forum | Blog | Links |
| Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
| 2024-07-13 (8 months ago) | Not yet rated by the users | Total: 34 | All time: 11,063 This week: 64 | |||||
| Version | License | PHP version | Categories | |||
| minimal-singleton 1.0.0 | Shareware | 8 | Language, Design Patterns, PHP 8 |
| Description | Author | |||||||||||||||||||||||
This package can show how to create only one object of class. |
| |||||||||||||||||||||||
<?php |
Minimal PHP Singleton Demostration
Clone the repo
git clone https://github.com/ahmard/minimal-singleton.git
Navigate to the cloned repo
cd minimal-singleton
Install Composer packages
composer install
Run below command to run the example
php entry.php
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Example | Example script | |||
| Doc. | Documentation | |||
| / | src |
| File | Role | Description |
|---|---|---|
| |
Class | Class source |
| |
Class | Class source |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.