PHP Class PhpExtensions, lithium

Both plain PHP.net and HHVM interpreters are supported. Some extensions cannot be installed with HHVM as they are not yet bundled.
Show file Open project: unionofrad/lithium Class Usage Examples

Public Methods

Method Description
install ( string $name ) : void Install extension by given name.

Protected Methods

Method Description
_apc ( )
_apcu ( )
_build ( array $data ) : void Builds a given item from source, by first retrieving the source tarball then phpize'ing and making it.
_ini ( array $data ) : void Add INI settings. Uses configration retrieved as per php_ini_loaded_file().
_isHhvm ( )
_memcached ( )
_mongo ( )
_opcache ( )
_pecl ( string $name, string | null $forceVersion = null, boolean $autoAccept = false ) : void Installs a package from pecl.
_redis ( )
_system ( string $command ) : void Executes given command, reports and exits in case it fails.
_xcache ( )

Method Details

_apc() protected static method

protected static _apc ( )

_apcu() protected static method

protected static _apcu ( )

_build() protected static method

Builds a given item from source, by first retrieving the source tarball then phpize'ing and making it.
protected static _build ( array $data ) : void
$data array An array with information about remote source location and special arguments that should be passed to `configure`.
return void

_ini() protected static method

Note that in HHVM we currently cannot access the loaded ini file.
protected static _ini ( array $data ) : void
$data array INI settings to add.
return void

_isHhvm() protected static method

protected static _isHhvm ( )

_memcached() protected static method

protected static _memcached ( )

_mongo() protected static method

protected static _mongo ( )

_opcache() protected static method

protected static _opcache ( )

_pecl() protected static method

Installs a package from pecl.
protected static _pecl ( string $name, string | null $forceVersion = null, boolean $autoAccept = false ) : void
$name string The name of the package to install.
$forceVersion string | null Optionally a specific version string, if not provided will install the latest available package version..
$autoAccept boolean
return void

_redis() protected static method

protected static _redis ( )

_system() protected static method

Executes given command, reports and exits in case it fails.
protected static _system ( string $command ) : void
$command string The command to execute.
return void

_xcache() protected static method

protected static _xcache ( )

install() public static method

Install extension by given name.
public static install ( string $name ) : void
$name string The name of the extension to install.
return void