Code Monkey home page Code Monkey logo

Comments (1)

matyhtf avatar matyhtf commented on July 21, 2024 2

虽然通过各种奇技淫巧能实现这样的功能,但是这个并不是真正的编译php代码为机器码然后构建成为一个可执行程序。

php 语言只是一个脚本语言,它的运行方式就是使用 VM 加载执行的方式。强行整合为一个可执行文件,具有一定的迷惑性。

就像 java 程序,都是通过先安装 jre 再通过 java your_app.jar 的方式运行的。

分发问题

swoole-cli已经解决了分发的问题,你可以把 swoole-cli 和 你的php 程序一起打包给用户即可。
这里何必纠结于分发一个文件,还是两个文件呢,这并没有什么区别。

授权问题

swoole-cli中使用了很多GPL协议的软件包,这些软件包是有授权污染的问题的,若要将swoole-cli的二进制程序进行发行,相关的源代码必须是开源的。

如果你坚持要将你的 php 代码和 swoole-cli 打包在一起成为一个可执行文件,可能会有法律风险,这可能会被视为发行程序的一部分,你的 php 代码可能也需要开源。

from swoole-cli.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.