Extracting files from .phar archive

后端 未结 7 1316
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 07:31

There is something I entirely missed as for phar files. I am installing a project that requires phpunit, pdepend and other dependencies. I fetched them as .phar files. But, I am

7条回答
  •  青春惊慌失措
    2021-01-31 08:16

    If you want to just using it, you should include as phar:///path/to/myphar.phar/file.php.

    But if you really want to unpack it, see the PharData class - no known (internal) extraction in command line, but you can write a script for that.

提交回复
热议问题