turkevich/php-base-singleton

There is no license information available for the latest version (dev-master) of this package.

PHP Base Singleton

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/turkevich/php-base-singleton

dev-master 2015-07-11 11:41 UTC

This package is not auto-updated.

Last update: 2025-10-01 15:48:33 UTC


README

Example class

<?php
use ctur\base\Singleton;

class Service extends Singleton {}

Use:

var_dump(Service::factory(['a' => 1, 'b' => 2]));die;

Result:

object(Service)[57]
  public 'a' => int 1
  public 'b' => int 2

Enjoy, guys!