# The Phar class

&reftitle.intro;

The Phar class provides a high-level interface to accessing and creating phar archives.

&reftitle.classsynopsis;

         Phar

         extends
         RecursiveDirectoryIterator

         implements
         Countable

         ArrayAccess

        &InheritedConstants;

        &Constants;

         const
         int
         Phar::BZ2

         const
         int
         Phar::GZ

         const
         int
         Phar::NONE

         const
         int
         Phar::PHAR

         const
         int
         Phar::TAR

         const
         int
         Phar::ZIP

         const
         int
         Phar::COMPRESSED

         const
         int
         Phar::PHP

         const
         int
         Phar::PHPS

         const
         int
         Phar::MD5

         const
         int
         Phar::OPENSSL

         const
         int
         Phar::OPENSSL_SHA256

         const
         int
         Phar::OPENSSL_SHA512

         const
         int
         Phar::SHA1

         const
         int
         Phar::SHA256

         const
         int
         Phar::SHA512

        &Methods;

        &InheritedMethods;

&reftitle.changelog;

&Version; | &Description;
8.4.0 | Added support for the Unix timestamp extension for Zip-based archives.

&reference.phar.entities.Phar;