| Recommend this page to a friend! | 
| Info | Example | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 250 | All time:  7,925 This week: 49 | ||||
| Version | License | PHP version | Categories | |||
| singleton-trait 3.2 | MIT/X Consortium ... | 5.4 | PHP 5, Language, Design Patterns, Traits | 
| Description | Author  | |
This is a trait that adds singleton pattern to a class.  | 
<?php
 | 
| File | Role | Description | ||
|---|---|---|---|---|
| Conf. | Composer File | |||
| Lic. | License (MIT) | |||
| Test | Unit Testing | |||
| Doc. | README | |||
| / | Falcraft | / | Patterns | 
| File | Role | Description | ||
|---|---|---|---|---|
|    | 
Example | A registry singleton example | ||
|    | 
Class | The Singleton Trait | ||
| / | Falcraft | / | Patterns | / | Exception | 
| File | Role | Description | 
|---|---|---|
|    | 
Class | Custom/Local Exception Interface | 
|    | 
Class | Custom/Local Runtime Exception | 
| / | Falcraft | / | Patterns | / | Resource | 
| File | Role | Description | 
|---|---|---|
|    | 
Class | An interface to identify singletons, separate from trait | 
| / | src | / | Phabstractic | 
| File | Role | Description | ||
|---|---|---|---|---|
|    | 
Conf. | Loader | ||
| / | src | / | Phabstractic | / | Patterns | 
| / | src | / | Phabstractic | / | Patterns | / | Exception | 
| File | Role | Description | 
|---|---|---|
|    | 
Class | exception classification | 
|    | 
Class | exception classification | 
| / | src | / | Phabstractic | / | Patterns | / | Resource | 
| File | Role | Description | 
|---|---|---|
|    | 
Class | Main Trait | 
|    | 
Class | Main Trait | 
| / | tests | / | Phabstractic | / | Patterns | / | Resource | 
| File | Role | Description | 
|---|---|---|
|    | 
Test | unit testing | 
| 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 | Reuses | Unique User Downloads | Download Rankings | ||||||||||||||||
| 0% | 1 | 
  | 
  | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
| Other classes that need this package | 
| Class | Why it is needed | Dependency | 
|---|---|---|
| PHP Registry with Singleton Trait | Required to make registry a singleton | Required | 
| Related pages | 
| Location in Git Hub Repository | 
| Info on Singleton Pattern | 
| Traits Explanation | 
| Singleton Class Explanation |