When designing web applications, it often makes sense conceptually and architecturally to allow access to one and only one instance of a particular class. The singleton pattern enables us to do this.
Continue reading “PHP Design Patterns: Singleton Pattern”