The Phar extension provides the phar stream, which allows accessing files contained within a phar transparently. The file format of a Phar is described here