cri2net/php-singleton

PHP Trait Singleton

1.0.1 2020-02-04 10:50 UTC

This package is auto-updated.

Last update: 2020-07-16 15:56:07 UTC


README

This is php trait for Singleton pattern;

Usage:

<?php

use cri2net\php_singleton\Singleton;

class YourClass
{
    use Singleton;
    
    /*
    code of your class
    */
}

$obj = YourClass::getInstance();