从.phar存档中提取文件 [英] Extracting files from .phar archive

查看:98
本文介绍了从.phar存档中提取文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于phar文件,我完全错过了一些东西.我正在安装一个需要phpunit,pdepend和其他依赖项的项目.我以.phar文件的形式获取它们.但是,我无法使用命令行工具(php命令)从文件中提取文件.我搜索了这个问题,但没有发现真正能回答这个问题的东西.有人可以帮忙吗?

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 not able ot extract the files from them using command line tool (php command). I googled the problem, and I found nothing really answering the question. Could anyone help ?

推荐答案

是的,该库可以做到: https://github .com/koto/phar-util

Yes, this library can do it: https://github.com/koto/phar-util

phar-extract library.phar输出目录

phar-extract library.phar output-directory

这篇关于从.phar存档中提取文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆