加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

PHP打包/部署

发布时间:2020-12-13 18:19:28 所属栏目:PHP教程 来源:网络整理
导读:在 PHP中打包Web应用程序以便于部署的好方法是什么?目前,我正在使用make来生成一个gzipped tar文件.在Java中,大多数人使用Maven并构建WAR.我想知道PHP世界中是否有类似的标准做法. PHP有一个Maven.我想知道这是否可行. 您可能会对PHP存档感兴趣. 见manual.
在 PHP中打包Web应用程序以便于部署的好方法是什么?目前,我正在使用make来生成一个gzipped tar文件.在Java中,大多数人使用Maven并构建WAR.我想知道PHP世界中是否有类似的标准做法.

PHP有一个Maven.我想知道这是否可行.

您可能会对PHP存档感兴趣.

见manual.

The phar extension provides a way to put entire PHP applications into a single file called a “phar” (PHP Archive) for easy distribution and installation. In addition to providing this service,the phar extension also provides a file-format abstraction method for creating and manipulating tar and zip files through the PharData class,much as PDO provides a unified interface for accessing different databases. Unlike PDO,which cannot convert between different databases,Phar also can convert between tar,zip and phar file formats with a single line of code. see Phar::convertToExecutable() for one example.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读