SiavashBamshadnia / Laravel-Source-Encrypter

Laravel and Lumen Source Code Encrypter
MIT License
535 stars 124 forks source link

[Feature request] Support encryption of Blade files #28

Open Sophist-UK opened 1 year ago

Sophist-UK commented 1 year ago

Rather than leaving *.blade.php files unencrypted, please consider adding functionality to encrypt blade files using one of the following methods:

a. Compile the blade file to raw php and then encrypt it; or

b. Use a method other than phpBolt to encrypt the blade file, storing the (separate) encryption key for this in a phpBolt encrypted blade file.

Both of these methods are likely to require some sort of macroed extension to Laravel's blade to handle these without code changes.

SiavashBamshadnia commented 1 year ago

The blade files are not real PHP files. They mostly contain HTML and CSS codes. Why do you want to encrypt them?

Sophist-UK commented 1 year ago

I don't want to personally - I am posting this on behalf of @vishalmicrolevel - see https://github.com/laravel/framework/discussions/44916