Skip to content

Commit e490626

Browse files
committed
Update README.md
1 parent d2a7da5 commit e490626

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/byjg/SingletonPatternPHP/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/byjg/SingletonPatternPHP/?branch=master)
1515
[![Code Climate](https://codeclimate.com/github/byjg/SingletonPatternPHP/badges/gpa.svg)](https://codeclimate.com/github/byjg/SingletonPatternPHP)
1616

17-
## Description
1817

1918
A lightweight PHP implementation of the Design Pattern Singleton using trait.
2019
Just one class and no dependencies.
2120

22-
## Usage
21+
# Usage
2322

24-
### Create your class
23+
## Create your class
2524

2625
```php
2726
require "vendor/autoload.php";
@@ -39,17 +38,20 @@ class Example
3938
Singleton classes does not have arguments in the constructor;
4039

4140

42-
### Use your class
41+
## Use your class
4342

4443
```php
4544
$example = Example::getInstance();
4645
```
4746

48-
## Install
47+
# Install
4948

50-
Just type: `composer require "byjg/singleton-pattern=~1.0"`
49+
```
50+
composer require "byjg/singleton-pattern=~1.0"
51+
```
5152

52-
## References
53+
# References
5354

5455
* https://en.wikipedia.org/wiki/Singleton_pattern
5556

57+

0 commit comments

Comments
 (0)