What is the Best Way to Encrypt a FilamentPHP Project for Local Deployment?
Hello everyone,
I have a FilamentPHP project built with Laravel, and I want to protect the source code from being altered or viewed when deploying it locally (for example, using Laragon or other local servers). I’m exploring the best method to encrypt or obfuscate the code to prevent unauthorized access, but still allow the project to run without issues.
I’ve come across a few options like phpBolt, ionCube, and PHP Obfuscators, but I’m looking for advice from anyone who has successfully implemented encryption or obfuscation in a Laravel-based project, particularly for Filament.
What are the best tools or methods for encrypting or obfuscating PHP code locally?
Are there any specific considerations I should keep in mind for a Filament project?
What are the trade-offs in performance or maintainability when using these tools?
Any recommendations or best practices would be greatly appreciated!
Thank you:fi: :fi:
5 Replies
Long story short, You can’t really do this without compiling to a binary.
What are you actually trying to achieve though.?
Thanks for the response! The goal here is to protect the code when deploying it locally to prevent unauthorized access or alterations by users. I'm looking for a way to make the code inaccessible or unmodifiable without affecting the project's performance or maintainability. Do you have any recommendations or best practices on how to achieve that?
why dose not free?
There isn't any, you should secure down the location where the application is hosted for that.
You've picked the wrong language for that level of protection.
I suspect you want to deploy the application to a client and want to remain the sole contractor for that client so no one else can modify it but you. That's not good practice in anyway.
So it is operating on a local network only?
You'd have to deliver them the hardware, or host it somewhere and lock down the ip access.