Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-07-13 (1 month ago) | Not yet rated by the users | Total: 34 | All time: 11,016 This week: 43 |
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
Files (5) |
File | Role | Description | ||
---|---|---|---|---|
src (2 files) | ||||
composer.json | Data | Auxiliary data | ||
entry.php | Example | Example script | ||
README.md | Doc. | Documentation |
Files (5) | / | src |
File | Role | Description |
---|---|---|
Environment.php | Class | Class source |
SingletonHelper.php | 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. |
Install with Composer |
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.