如何对 PHP 代码加密?

时间:2021-07-10 19:36:56

这几天有同事问如何对 PHP 代码进行加密?

在我印象中 PHP 加密还是比较麻烦的,之前只知道 Zend Guard 。

刚刚找了一圈发现现在还是有很多可行的方案,先记录一下,以后使用。

  1. 使用混淆
  2. Zend Guard
  3. php-beast
  4. OPcache

参考链接:

https://github.com/liexusong/php-beast

https://my.oschina.net/eechen/blog/539995

http://php.net/manual/zh/intro.opcache.php

http://www.thinkphp.cn/topic/4102.html