PHP Classes

Recommendation for a PHP class to encrypt code: Encrypt PHP source code file including JavaScript

Recommend this page to a friend!
  All requests RSS feed  >  Recommendation for a PHP class to enc...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Recommendation for a PHP class to encrypt code


Picture of fatimafateen by fatimafateen - 3 years ago (2021-04-12)

Encrypt PHP source code file including JavaScript

This request is clear and relevant.
This request is not clear or is not relevant.


I need to encrypt my PHP source code. I need the whole source code file to be encrypted, which may include JavaScript, HTML and PHP code too.

Ask clarification

1 Recommendation

PHP Application Packer: Create packages of project files for distribution

This recommendation solves the problem.
This recommendation does not solve the problem.


Picture of Manuel Lemos by Manuel Lemos Reputation 23960 - 3 years ago (2021-04-13) Comment

If you want just to obfuscate the PHP source code along with other types of files, you may want to try this package can compact PHP code and makes it hard to read. It comes with plugins to compact other types of files like JavaScript and HTML. Then it packs in a ZIP archive.

It is not secure in the sense that it will stop a user with some knowledge to recover the code in a readable format, but it can be good enough to discourage somebody without much knowledge of programming to to read or copy the code.

If you want a more secure solution, you may want to try PHP encoder products that encode the code in a binary format and require an extension to load and execute that code.

Recommend package