从.phar存档中提取文件

编程入门 行业动态 更新时间:2024-10-24 14:24:54
本文介绍了从.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 ?

推荐答案

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

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

phar-extract library.phar输出目录

phar-extract library.phar output-directory

更多推荐

从.phar存档中提取文件

本文发布于:2023-06-04 08:32:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/493315.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   phar

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!