构建系统的PHP Web应用程序 [英] Build Systems for PHP Web Apps
问题描述
我要开始更多的自动化我的web开发过程中,所以我在找一个构建系统。我写的Mac OS X上大多是PHP应用程序,并通过FTP部署Linux服务器。我的很多客户都有基本的托管服务提供商所以他们的服务器shell访问通常是不可用,但远程MySQL访问通常是present。以下是我想用构建系统要做到:
I want to start automating more of my web development process so I'm looking for a build system. I write mostly PHP apps on Mac OS X and deploy Linux servers over FTP. A lot of my clients have basic hosting providers so shell access to their servers is typically not available, however remote MySQL access is usually present. Here is what I want to do with a build system:
- 在当前建设:
- 皮棉JavaScript文件
- 验证CSS文件
- 验证HTML文件
- 缩减大小并串连JS和CSS文件
- 验证PHP语法
- 设置调试/生产标志
- 从SVN结帐最新版本
- 运行构建过程
- 通过FTP上传文件到服务器
- 在远程数据库运行SQL脚本
我意识到这是一个大量的工作实现自动化,但我认为这将是值得的。那么,什么是开始沿着这条道路的最好方法?是否有可以处理构建和部署,或者我应该寻求独立解决方案的系统?你会推荐什么系统?
I realize this is a lot of work to automate but I think it would be worth it. So what is the best way to start down this path? Is there a system that can handle builds and deploys, or should I search for separate solutions? What systems would you recommend?
推荐答案
所有你要的可以 Phing 完成
Phing是用PHP和Apache Ant的建模的部署框架。它配备了一大套准备使用的部署任务,包括数据库部署,远程文件传输和VCS连接。如果你缺少的功能,你可以用标准的PHP扩展Phing。
Phing is a deployment framework written in PHP and modeled after Apache Ant. It comes with a large set of ready-to-use deployment tasks, including database deployment, remote file transfers and VCS connectivity. If you are missing functionality, you can extend Phing with standard PHP.
Phing提供以下功能:
Phing provides the following features:
- 简单的XML构建文件
- 丰富的任务提供
- 通过PHP类易于扩展
- 独立于平台的:工作在UNIX,Windows,MacOSX的
- 无需外部依赖
- 内置功放&;对于ZendEngine2 / PHP5优化
这篇关于构建系统的PHP Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!