Trait implementing singleton pattern.
github.com/akbsit/trait-singleton
Source
Issues
Installs: 36
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
Requires (Dev)
None
Suggests
Provides
Conflicts
Replaces
MIT e462cab43a636a8f64fabde7668deed914358442
phppatternsingleton
This package is auto-updated.
Last update: 2024-10-16 20:26:00 UTC
To install package, you need run command:
composer require akbsit/trait-singleton
<?php namespace App\Classes; use Akbsit\TraitSingleton\SingletonTrait; class ExampleSingletonClass { use SingletonTrait; }
ExampleSingletonClass::instance();