falbar/trait-singleton

This package is abandoned and no longer maintained. The author suggests using the akbsit/trait-singleton package instead.

Trait implementing singleton pattern.

1.0.5 2023-09-16 17:53 UTC

This package is auto-updated.

Last update: 2023-09-16 17:57:37 UTC


README

Install

To install package, you need run command:

composer require akbsit/trait-singleton

Example

<?php namespace App\Classes;

use Akbsit\TraitSingleton\SingletonTrait;

class ExampleSingletonClass
{
    use SingletonTrait;
}
ExampleSingletonClass::instance();