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::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::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::mapPhar

(PHP >= 5.3.0, PECL phar >= 1.0.0) Reads the currently executed file (a phar) and registers its manifest final public static bool Phar::mapPhar ([ string $alias [, int $dataoffset = 0 ]] ) This static method can only be used inside a Phar archive's loader stub in order to initialize the phar when it is directly executed, or when it is included in another script. Parameters: ali

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::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::extractTo

(Unknown) Extract the contents of a phar archive to a directory public bool Phar::extractTo ( string $pathto [, string|array $files [, bool $overwrite = false ]] ) 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. Extract all files within a phar archive to disk. Extracted files and directories preserve permissions as