public static function instance(array $config = array())
    {
        if (!(self::$instance instanceof Phery)) {
            self::$instance = new Phery($config);
        } else if ($config) {
            self::$instance->config($config);
        }

        return self::$instance;
    }
public static function instance(array $config = array())
    {
        if (!(self::$instance instanceof Phery)) {
            self::$instance = new Phery($config);
        } else if ($config) {
            self::$instance->config($config);
        }

        return self::$instance;
    }
public static function instance ( array $ config = array ( ) ) { if ( ! ( self :: $ instance instanceof Phery ) ) { self :: $ instance = new Phery ( $ config ) ; } else if ( $ config ) { self :: $ instance -> config ( $ config ) ; } return self :: $ instance ; }
Generates just one instance. Useful to use in many included files. Chainable

@param array $config Associative config array

@see __construct()
@see config()
@static
@return Phery
Generates just one instance . Useful to use in many included files . Chainable