Comments (1)
虽然通过各种奇技淫巧能实现这样的功能,但是这个并不是真正的编译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)
- 有没有教程文档啊 HOT 3
- ./make.sh build 报错了,fatal error: 'ext/swoole/include/swoole_version.h' file not found HOT 3
- configure:31121: error: Unable to locate gmp.h HOT 4
- mimalloc is not linked
- ./make.sh build报错 fatal error: 'brotli/encode.h' file not found HOT 2
- 我觉得官方可以把swoole-cli编译好独立出来放到官网 直接抛弃php了 HOT 1
- Enable c-ares support, require c-ares library HOT 6
- [建议] 建议版本号跟PHP版本号保持一致 HOT 4
- [Feature Request] 补充常用的PHP扩展 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swoole-cli.