部署 php 个应用程序

Deploy a php application

是否有无需向客户提供源代码即可部署 PHP/Symfony2 项目的方法?

我不知道它是否像 JEE 项目,但我的所有研究发现部署 symfony 应用程序的唯一方法是将 dev 更改为 prod。

有人可以帮我吗?

Here 你有同样的问题,不是关于 symfony 本身而是关于 PHP。那里的一些建议:

  • Make a virtual machine appliance (restricts access to code, makes sure that the deployment environment is stable and controlled, and sandboxes the install)
  • If you're afraid they will steal and resell your code, change you and do the support with another person, etc., you could add clauses to the contract forbidding that

编辑:您也有 Zend Guard (found it in this other answer),但通常有一种方法可以解码混淆的 PHP 代码。