What is the best way to protect Laravel source code for a local customer installation?
I am currently working on SaaS in Laravel and for a local deployment at a client I would like to encrypt the source code of the project before copying. How to do it or what are the possible solutions ?
@jaseofspades88 I was planning to install wamp or docker on the client machine and copy the laravel 10 source code to a specific folder and create a virtual host.
I think you can use https://nativephp.com/ (PHPNative) and deploy it to local machine of client.
It uses laravel as a development framework and build it as an app for desktop using electronjs(I guess)
@AnaniKomlan if you are not running out of time, you can test on your own I guess.
Otherwise for windows install laragon or something to the windows and install. Setup the project. That is the only way..
For Linux, LAMP setup little bit time taking..
@adityakunhare nativephp is really only an option if the client needs 1 copy. If it needs to be distributed to the organisation then this would be a nightmare for the OP.
And, at this point, NativePHP code is not obfuscated
@ananikomlan If you don’t want people to steal your source code, then don’t give them it.
I’m not sure why clients would be doing “local” installations in the first place if you‘re building a SaaS. The entire point of a SaaS is that you offer the software as a service.
I don't know of specific solutions, but you could perhaps licence parts of the code the same way that Laravel does with Spark. Alternatively give them a local copy but have parts of the application only resolved by a call to an API that you host.