Description
Laravel Source Encrypter is a Composer package that encrypts the PHP source code of Laravel and Lumen applications using phpBolt. It is for Laravel and Lumen 6, 7, 8 and 9. You install phpBolt first, then require the package with Composer. In Laravel the service provider registers automatically, or you can add it to config/app.php by hand. In Lumen you add the provider under the Register Service Providers section of bootstrap/app.php, and the README says Lumen users must use this package. Publishing the config file is optional, and it controls which files and folders are encrypted. The defaults are app, database and routes, with encrypted as the destination directory. You run the encryption command from the project root and can pass options for the source paths, the destination, the key length and a force flag for an existing destination. The default key length is 6, which the README recommends. The README includes a table of usage examples for the command.…
Highlights
- Encrypts Laravel and Lumen source with phpBolt
- Supports Laravel and Lumen 6 to 9
- Configurable source paths and destination
- Key length option
- Force option for an existing destination
Ratings & Reviews
No ratings yet
Be the first to rate Laravel-Source-Encrypter.
People also visit
Lockenv
Simple, password-based encrypted vault for .env and infrastructure secrets
Laravel-Source-Encrypter FAQ
What does this package do?
It encrypts the PHP source of Laravel and Lumen projects using phpBolt. The default folders are app, database and routes.
Which versions are supported?
Laravel and Lumen 6, 7, 8 and 9, according to the README.
How do I install it?
Install phpBolt, then require the package with Composer. Laravel registers the service provider automatically, while Lumen needs the provider added to bootstrap/app.php.
How do I run it?
Open a terminal in the project root and run the encryption command. Options set the source paths, destination, key length and force.
What key length should I use?
The default is 6, which the README recommends. You can change it in the config file or with the keylength option.
What are the best Laravel-Source-Encrypter alternatives?
Popular alternatives to Laravel-Source-Encrypter include phpBolt, Lockenv and LaraOwl. See all Laravel-Source-Encrypter alternatives


