We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de4ee5 commit 8234a5bCopy full SHA for 8234a5b
README.md
@@ -7,8 +7,6 @@
7
A lightweight PHP implementation of the Design Pattern Singleton using trait.
8
Just one class and no dependencies.
9
10
-# Usage
11
-
12
## Create your class
13
14
```php
@@ -33,13 +31,13 @@ Singleton classes does not have arguments in the constructor;
33
31
$example = Example::getInstance();
34
32
```
35
36
-# Install
+## Install
37
38
39
composer require "byjg/singleton-pattern=~1.0"
40
41
42
-# References
+## References
43
44
* https://en.wikipedia.org/wiki/Singleton_pattern
45
0 commit comments