thedepart3d/laravel-source-encryption

Laravel Source Code Encryptor

1.1.3.1 2023-03-29 13:49 UTC

This package is auto-updated.

Last update: 2024-10-29 17:18:42 UTC


README

This package encrypts your php code with phpBolt

For Laravel 9*

Installation

Step 1

You have to install phpBolt.

Step 2

Require the package with composer using the following command:

composer require thedepart3d/laravel-source-encryption

Step 3

For Laravel

The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:

'providers' => [
    // ...
    \thedepart3d\LaravelSourceEncryption\EncryptServiceProvider::class,
];

Step 4 (Optional)

You can publish the config file with this following command:

php artisan vendor:publish --provider="thedepart3d\LaravelSourceEncryption\EncryptServiceProvider" --tag=encryptionConfig

Usage

Open terminal in project root and run this command:

php artisan encrypt-source

This command encrypts files and directories in config/source-encryption.php file. Default values are app, database, routes, config.

The default destination directory is encrypted-source. You can change it in config/source-encryption.php file.

Also the default encryption key length is 16. You can change it in config/source-encryption.php file. 6 is the recommended key length.

This command has these optional options:

Usage Examples

Updated with ♥ by The Departed

Support can be shared by staring this repository.