Phar::loadPhar

(PHP >= 5.3.0, PECL phar >= 1.0.0) Loads any phar archive with an alias final public static bool Phar::loadPhar ( string $filename [, string $alias ] ) This can be used to read the contents of an external Phar archive. This is most useful for assigning an alias to a phar so that subsequent references to the phar can use the shorter alias, or for loading Phar archives that only contain data and are not intended for exec

Phar::isWritable

(Unknown) Returns true if the phar archive can be modified public bool Phar::isWritable ( void ) This method returns TRUE if phar.readonly is 0, and the actual phar archive on disk is not read-only. Returns: Returns TRUE if the phar archive can be modified See also: Phar::canWrite() -

Phar::isValidPharFilename

(PHP >= 5.3.0, PECL phar >= 1.2.0) Returns whether the given filename is a valid phar filename final public static bool Phar::isValidPharFilename ( string $filename [, bool $executable = true ] ) Returns whether the given filename is a valid phar filename that will be recognized as a phar archive by the phar extension. This can be used to test a name without having to instantiate a phar archive and catch the inevitabl

Phar::isFileFormat

(PHP >= 5.3.0, PECL phar >= 2.0.0) Returns true if the phar archive is based on the tar/phar/zip file format depending on the parameter public bool Phar::isFileFormat ( int $format ) Parameters: format Either Phar::PHAR, Phar::TAR, or Phar::ZIP to test for the format of the archive. Returns: Returns TRUE if the phar archive matches the file f

Phar::isCompressed

(PHP >= 5.3.0, PECL phar >= 2.0.0) Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and so on) public mixed Phar::isCompressed ( 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. Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and

Phar::isBuffering

(PHP >= 5.3.0, PECL phar >= 1.0.0) Used to determine whether Phar write operations are being buffered, or are flushing directly to disk public bool Phar::isBuffering ( void ) This method can be used to determine whether a Phar will save changes to disk immediately, or whether a call to Phar::stopBuffering() is needed to enable saving changes. Phar write buffering is per-archive, buffering active for the foo.phar Phar

Phar::interceptFileFuncs

(PHP >= 5.3.0, PECL phar >= 2.0.0) instructs phar to intercept fopen, file_get_contents, opendir, and all of the stat-related functions final public static void Phar::interceptFileFuncs ( void ) instructs phar to intercept fopen(), readfile(), file_get_contents(), opendir(), and all of the stat-related functions. If any of these functions is called from within a phar archive with a relative path, the call is modified

Phar::hasMetadata

(PHP >= 5.3.0, PECL phar >= 1.2.0) Returns whether phar has global meta-data public bool Phar::hasMetadata ( void ) Returns whether phar has global meta-data set. Returns: Returns TRUE if meta-data has been set, and FALSE if not. Examples: A Phar::hasMetadata() example <?php try {     $phar = new Phar('myphar.pha

Phar::getVersion

(PHP >= 5.3.0, PECL phar >= 1.0.0) Return version info of Phar archive public string Phar::getVersion ( void ) Returns the API version of an opened Phar archive. Returns: The opened archive's API version. This is not to be confused with the API version that the loaded phar extension will use to create new phars. Each Phar archive has the API version hard-coded into its manifest. See Phar fil

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() -