Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kennfatt/unphar
PHP Utility tool to extracting a Phar (PHP Archive) file in batch mode.
https://github.com/kennfatt/unphar
phar php php-archive php-cli php-phar php-utility php7 unphar
Last synced: 5 days ago
JSON representation
PHP Utility tool to extracting a Phar (PHP Archive) file in batch mode.
- Host: GitHub
- URL: https://github.com/kennfatt/unphar
- Owner: KennFatt
- License: gpl-3.0
- Created: 2017-07-07T23:38:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T17:01:28.000Z (over 4 years ago)
- Last Synced: 2023-10-20T20:56:13.029Z (about 1 year ago)
- Topics: phar, php, php-archive, php-cli, php-phar, php-utility, php7, unphar
- Language: PHP
- Homepage: https://github.com/KennFatt/UnPhar
- Size: 22.5 KB
- Stars: 6
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnPhar
> __PHP Utility tool to extracting a Phar (PHP Archive) file in batch mode.__## Requirements
```
PHP: 7.1.0
```## Usage
There is two main folders: `out/` and `phars/`.
Please put all your `.phar` files into `phars/` folder and let the `out/` folder is empty.Execute `unphar.php` with your executable php binary.
```
php unphar.php --override
```
_This example let the program to override existing extracted (out) file._## Extras
This migt be useful for *nix platform to extract `.phar` file directly with command `phar`. Make sure that file `/usr/bin/phar` is available on your machine.
```
/usr/bin/phar extract -f YourPharFile.phar /path/to/extraction
```In real case:
```
phar extract -f composer.phar .
```## Credits
Author: [KennFatt](https://github.com/KennFatt)