maximaster / self-registry
Trait to make class to act like self-registry
Installs: 16
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/maximaster/self-registry
This package is auto-updated.
Last update: 2025-09-29 02:22:34 UTC
README
Trait to make class to act like self-registry
Usage
composer require maximaster/self-registry
use Maximaster\SelfRegistry\SelfRegistryTrait; class ApiClient { use SelfRegistryTrait; }
$apiClient = new ApiClient(); $apiClient->registerItself(); // in the other part of an application $apiClient = ApiClient::getInstance();