New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

karem-sobhy/laravel-source-encrypter

Laravel Source Encrypter
12

Larablocks Analysis

karem-sobhy/laravel-source-encrypter works with Laravel 6 to 11 (latest release 1.4, Aug 24, 2024), all past end of life (the last on Mar 12, 2026): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 6 to 11, past end of life since Mar 12, 2026
  • No release in the last 12 months (last: Aug 24, 2024)
  • 0 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Aug 24, 2024.
  • No releases in the last 12 months.
  • First released: Aug 24, 2024.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require karem-sobhy/laravel-source-encrypter
Latest Version:1.4
PHP:>=7.2.5
Laravel:6 – 11
License:MIT
Last Updated:Aug 24, 2024
Links: GitHub  ·  Packagist
Maintainer: Karem-sobhy

Laravel Source Encrypter

Latest Stable Version License

This package encrypts your php code with phpBolt

For Laravel and Lumen 6, 7, 8, 9, 10, 11

Installation

Step 1

At the first, You have to install phpBolt.

Step 2

Require the package with composer using the following command:

composer require --dev Karem-sobhy/laravel-source-encrypter

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' => [
    // ...
    \karemsobhy\LaravelSourceEncrypter\SourceEncryptServiceProvider::class,
];
For Lumen

Add this line of code under the Register Service Providers section of your bootstrap/app.php:

$app->register(\karemsobhy\LaravelSourceEncrypter\SourceEncryptServiceProvider::class);

Step 4 (Optional)

You can publish the config file with this following command:

php artisan vendor:publish --provider="karemsobhy\LaravelSourceEncrypter\SourceEncryptServiceProvider" --tag=config

Note: If you are using Lumen, you have to use this package.

Usage

Open terminal in project root and run this command:

php artisan encrypt-source

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

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

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

This command has these optional options:

Option Description Example
source Path(s) to encrypt app,routes,public/a.php
destination Destination directory encrypted
keylength Encryption key length 6
force Force the operation to run when destination directory already exists

Usage Examples

Command Description
php artisan encrypt-source Encrypts with default source, destination and keylength. If the destination directory exists, asks for delete it.
php artisan encrypt-source --force Encrypts with default source, destination and keylength. If the destination directory exists, deletes it.
php artisan encrypt-source --source=app Encrypts app directory to the default destination with default keylength.
php artisan encrypt-source --destination=dist Encrypts with default source and key length to dist directory.
php artisan encrypt-source --destination=dist --keylength=8 Encrypts default source to dist directory and the encryption key length is 8.

Written with ♥ by Siavash Bamshadnia.

Modified by Karem Sobhy.

Please support me by staring this repository.

Alternatives to karem-sobhy/laravel-source-encrypter

betterapp/laravel-db-encrypter

Provides database model attribute encryption/decryption

728,563 361
codezero/encrypter

Encrypt and decrypt strings in PHP.

101,773 2
tiknil/file-vault
7,719 2
ivinteractive/laravel-rotation

A package to simplify data decryption and re-encryption when the APP_KEY needs r...

5,119 0

Version History

Version Released PHP Laravel License
1.4 >=7.2.5 >=6.0 MIT
1.3 >=7.2.5 >=6.0 MIT
1.2 >=7.2.5 >=6.0 MIT
1.1 >=7.2.5 >=6.0 MIT
1.0 >=7.2.5 >=6.0 MIT