Skip to content

🐳 快速、方便的 Swoole-Compiler 代码加密环境

License

Notifications You must be signed in to change notification settings

Jader/CodeEncryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

快速、方便的 Swoole-Compiler 代码加密环境

部署

安装依赖工具

获取部署脚本

$ git clone https://github.com/Jader/CodeEncryption.git

运行容器编排

$ cd CodeEncryption   // 进入项目根目录
$ docker-compose up -d   // 容器编排命令

$ docker-compose exec swoole-compiler swoole-compiler

使用

目录介绍

├── code                // 这里放加密的文件或文件夹
├── conf                // 加密时所使用的配置文件目录
├── output              // 加密完成后授权文件和加密文件包存在位置
├── docker-compose.yml
├── LICENSE
├── README.md

命令介绍

获取swoole-compiler信息、帮助信息

docker-compose exec swoole-compiler swoole-compiler

生成授权文件

docker-compose exec swoole-compiler swoole-compiler -t license -c conf/compiler.config

生成加密文件

docker-compose exec swoole-compiler swoole-compiler -t code -c conf/compiler.config

注意

Swoole-Compiler 服务端所需的 PHP 扩展 和配置

php.ini

[swoole_compiler]
extension=swoole_loader72.so ; 关于扩展需要去swoole官方购买后得到
swoole_license_files=/data/www/Jade/jade.license ;这里是产生的授权文件

About

🐳 快速、方便的 Swoole-Compiler 代码加密环境

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published