Using Phar Archives: the phar stream wrapperThe Phar stream wrapper fully supports fopen for read and write (not append), unlink, stat, fstat, fseek, rename and directory stream operations opendir and rmdir and mkdir. Individual file compression and per-file metadata can also be manipulated in a Phar archive using stream contexts:
The Although it is possible to create phar archives from scratch just using stream operations, it is best to use the functionality built into the Phar class. The stream wrapper is best used for read-only operations. |