krzysztofzylka / phar
Phar library
1.0.0
2024-01-16 20:38 UTC
Requires
- php: >=8.2
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
composer require krzysztofzylka/phar
Methods
Retrieves a list of files contained in the Phar archive
$phar = new \Krzysztofzylka\Phar\Phar('/path/to/file.tar.gz') var_dump($phar->getContentList())
Retrieves the content of a file from the Phar archive
$phar = new \Krzysztofzylka\Phar\Phar('/path/to/file.tar.gz') var_dump($phar->getFileContent('path/to/file/in/phar'))