Phar::getModified

(PHP >= 5.3.0, PECL phar >= 1.0.0) Return whether phar was modified public bool Phar::getModified ( void ) This method can be used to determine whether a phar has either had an internal file deleted, or contents of a file changed in some way. Returns: TRUE if the phar has been modified since opened, FALSE if not.

Phar::getSignature

(PHP >= 5.3.0, PECL phar >= 1.0.0) Return MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive public array Phar::getSignature ( void ) Returns the verification signature of a phar archive in a hexadecimal string. Returns: Array with the opened archive's signature in hash key and MD5, SHA-1, SHA-256, SHA-512, or OpenSSL in hash_type. This signature is a hash calculated on the entire ph

Phar::getSupportedSignatures

(PHP >= 5.3.0, PECL phar >= 1.1.0) Return array of supported signature types final public static array Phar::getSupportedSignatures ( void ) Return array of supported signature types Returns: Returns an array containing any of MD5, SHA-1, SHA-256, SHA-512, or OpenSSL. See also: Phar::getSignature() -

Phar::getStub

(PHP >= 5.3.0, PECL phar >= 1.0.0) Return the PHP loader or bootstrap stub of a Phar archive public string Phar::getStub ( void ) Phar archives contain a bootstrap loader, or stub written in PHP that is executed when the archive is executed in PHP either via include: <?php include 'myphar.phar'; ?> php myphar.phar Returns: Returns a string containing the contents of the bo

Phar::getSupportedCompression

(PHP >= 5.3.0, PECL phar >= 1.2.0) Return array of supported compression algorithms final public static array Phar::getSupportedCompression ( void ) Returns: Returns an array containing any of Phar::GZ or Phar::BZ2, depending on the availability of the zlib extension or the bz2 extension. See also: PharFileI

Phar::getMetadata

(PHP >= 5.3.0, PECL phar >= 1.0.0) Returns phar archive meta-data public mixed Phar::getMetadata ( void ) Retrieve archive meta-data. Meta-data can be any PHP variable that can be serialized. Returns: any PHP variable that can be serialized and is stored as meta-data for the Phar archive, or NULL if no meta-data is stored. Examples:

Phar::delMetadata

(PHP >= 5.3.0, PECL phar >= 1.2.0) Deletes the global metadata of the phar public bool Phar::delMetadata ( void ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. Deletes the global metadata of the phar Returns: returns TRUE on success, but it is better to check for thrown exception, a

Phar::delete

(PHP >= 5.3.0, PECL phar >= 2.0.0) Delete a file within a phar archive public bool Phar::delete ( string $entry ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. Delete a file within an archive. This is the functional equivalent of calling unlink() on the stream wrapper equivalent, as shown in the example below.

Phar::decompressFiles

(PHP >= 5.3.0, PECL phar >= 2.0.0) Decompresses all files in the current Phar archive public bool Phar::decompressFiles ( void ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. For tar-based phar archives, this method throws a BadMethodCallException, as compression of individual files within a tar archive is not

Phar::decompress

(PHP >= 5.3.0, PECL phar >= 2.0.0) Decompresses the entire Phar archive public object Phar::decompress ([ string $extension ] ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. For tar-based and phar-based phar archives, this method decompresses the entire archive. For Zip-based phar archives, this method fails