The Phar class2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/file/class.pharPhDPHP Documentation GroupPhar::addEmptyDir -- 添加一个空目录到 phar 档案2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.addemptydirPhar::addFile -- 将一个文件从文件系统添加到 phar 档案中2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.addfilePhar::addFromString -- 以字符串的形式添加一个文件到 phar 档案2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.addfromstringPhar::apiVersion -- Returns the api version2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.apiversionPhar::buildFromDirectory -- Construct a phar archive from the files within a directory2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.buildfromdirectoryPhar::buildFromIterator -- Construct a phar archive from an iterator2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.buildfromiteratorPhar::canCompress -- Returns whether phar extension supports compression using either zlib or bzip22024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.cancompressPhar::canWrite -- Returns whether phar extension supports writing and creating phars2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.canwritePhar::compress -- Compresses the entire Phar archive using Gzip or Bzip2 compression2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.compressPhar::compressFiles -- Compresses all files in the current Phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.compressfilesPhar::__construct -- Construct a Phar archive object2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.constructPhar::convertToData -- Convert a phar archive to a non-executable tar or zip file2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.converttodataPhar::convertToExecutable -- Convert a phar archive to another executable phar archive file format2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.converttoexecutablePhar::copy -- Copy a file internal to the phar archive to another new file within the phar2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.copyPhar::count -- Returns the number of entries (files) in the Phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.countPhar::createDefaultStub -- Create a phar-file format specific stub2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.createdefaultstubPhar::decompress -- Decompresses the entire Phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.decompressPhar::decompressFiles -- Decompresses all files in the current Phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.decompressfilesPhar::delMetadata -- Deletes the global metadata of the phar2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.delmetadataPhar::delete -- 删除 phar 档案中的一个文件2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.deletePhar::__destruct -- Destructs a Phar archive object2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.destructPhar::extractTo -- Extract the contents of a phar archive to a directory2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.extracttoPhar::getAlias -- Get the alias for Phar2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.getaliasPhar::getMetadata -- Returns phar archive meta-data2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.getmetadataPhar::getModified -- Return whether phar was modified2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.getmodifiedPhar::getPath -- Get the real path to the Phar archive on disk2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.getpathPhar::getSignature -- Return MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.getsignaturePhar::getStub -- Return the PHP loader or bootstrap stub of a Phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.getstubPhar::getSupportedCompression -- Return array of supported compression algorithms2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.getsupportedcompressionPhar::getSupportedSignatures -- Return array of supported signature types2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.getsupportedsignaturesPhar::getVersion -- Return version info of Phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.getversionPhar::hasMetadata -- Returns whether phar has global meta-data2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.hasmetadataPhar::interceptFileFuncs -- Instructs phar to intercept fopen, file_get_contents, opendir, and all of the stat-related functions2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.interceptfilefuncsPhar::isBuffering -- Used to determine whether Phar write operations are being buffered, or are flushing directly to disk2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.isbufferingPhar::isCompressed -- Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and so on)2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.iscompressedPhar::isFileFormat -- Returns true if the phar archive is based on the tar/phar/zip file format depending on the parameter2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.isfileformatPhar::isValidPharFilename -- Returns whether the given filename is a valid phar filename2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.isvalidpharfilenamePhar::isWritable -- Returns true if the phar archive can be modified2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.iswritablePhar::loadPhar -- Loads any phar archive with an alias2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.loadpharPhar::mapPhar -- Reads the currently executed file (a phar) and registers its manifest2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.mappharPhar::mount -- Mount an external path or file to a virtual location within the phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.mountPhar::mungServer -- Defines a list of up to 4 $_SERVER variables that should be modified for execution2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.mungserverPhar::offsetExists -- Determines whether a file exists in the phar2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.offsetexistsPhar::offsetGet -- Gets a PharFileInfo object for a specific file2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.offsetgetPhar::offsetSet -- Set the contents of an internal file to those of an external file2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.offsetsetPhar::offsetUnset -- Remove a file from a phar2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.offsetunsetPhar::running -- Returns the full path on disk or full phar URL to the currently executing Phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.runningPhar::setAlias -- Set the alias for the Phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.setaliasPhar::setDefaultStub -- Used to set the PHP loader or bootstrap stub of a Phar archive to the default loader2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.setdefaultstubPhar::setMetadata -- Sets phar archive meta-data2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.setmetadataPhar::setSignatureAlgorithm -- Set the signature algorithm for a phar and apply it2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.setsignaturealgorithmPhar::setStub -- Used to set the PHP loader or bootstrap stub of a Phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.setstubPhar::startBuffering -- Start buffering Phar write operations, do not modify the Phar object on disk2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.startbufferingPhar::stopBuffering -- Stop buffering write requests to the Phar archive, and save changes to disk2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.stopbufferingPhar::unlinkArchive -- Completely remove a phar archive from disk and from memory2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.unlinkarchivePhar::webPhar -- Routes a request from a web browser to an internal file within the phar archive2024-03-28T16:08:42+00:00tag:php.net,2009-10-13:/manual/en/phar.webphar