composer require micropackage/singleton
use Micropackage\Singleton\Singleton;
class Example extends Singleton {}
Example::get();
Micropackages - as the name suggests - are micro packages with a tiny bit of reusable code, helpful particularly in WordPress development.
The aim is to have multiple packages which can be put together to create something bigger by defining only the structure.
Micropackages are maintained by BracketSpace.
This software is released under MIT license. See the LICENSE file for more information.