krzysztofzylka / phar
Phar library
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/krzysztofzylka/phar
Requires
- php: >=8.2
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'))