构建PHP Web应用程序系统 [英] Build Systems for PHP Web Apps

查看:161
本文介绍了构建PHP Web应用程序系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始自动化更多的Web开发过程,所以我正在寻找一个构建系统。我主要在Mac OS X上编写PHP应用程序,并通过FTP部署Linux服务器。我的很多客户都有基本的托管服务提供商,所以对他们的服务器的shell访问通常是不可用的,但是远程的MySQL访问通常是存在的。以下是我想要使用构建系统的方式:

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:


  • 构建时:


    • Lint JavaScript文件

    • 验证CSS文件

    • 验证HTML文件

    • 缩小并连接JS和CSS文件

    • 验证PHP语法

    • 设置调试/生产标志

    • When Building:
      • Lint JavaScript Files
      • Validate CSS Files
      • Validate HTML Files
      • Minify and concatenate JS and CSS files
      • Verify PHP Syntax
      • Set Debug/Production flags

      • 从SVN结帐最新版本

      • 运行构建过程

      • 通过FTP将文件上传到服务器

      • 在远程DB上运行SQL脚本

      • Checkout latest version from SVN
      • Run build process
      • Upload files to server via FTP
      • Run SQL scripts on remote DB

      我意识到这是自动化的很多工作,但我认为这是值得的。那么启动这条路的最好办法是什么?是否有可以处理构建和部署的系统,还是应该搜索单独的解决方案?你会推荐什么系统?

      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

      All you ask for can be done with 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进行优化

      • Simple XML buildfiles
      • Rich set of provided tasks
      • Easily extendable via PHP classes
      • Platform-independent: works on UNIX, Windows, MacOSX
      • No required external dependencies
      • Built & optimized for ZendEngine2/PHP5

      这篇关于构建PHP Web应用程序系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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