New

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

thedepart3d/laravel-source-encryption

Laravel Source Code Encryptor
30 3

Larablocks Analysis

thedepart3d/laravel-source-encryption works with Laravel 8, 9 and 10 (latest release 1.1.3.1, Mar 29, 2023), all past end of life (the last on Feb 4, 2025): 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 8, 9 and 10, past end of life since Feb 4, 2025
  • No release in the last 12 months (last: Mar 29, 2023)
  • 0 downloads a month (needs 10,000)
  • 3 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Mar 29, 2023.
  • No releases in the last 12 months.
  • First released: Jul 17, 2022.
  • 0 open issues on GitHub.

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

Install
composer require thedepart3d/laravel-source-encryption
Latest Version:1.1.3.1
PHP:^8.1
Laravel:8 · 9 · 10
License:MIT
Last Updated:Mar 29, 2023
Links: GitHub  ·  Packagist
Maintainer: thedepart3d

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:

Option Description Example
source Path(s) to encrypt app,routes,public/a.php
destination Destination directory encrypted-source
key Custom Encryption key
keylength Encryption key length 16
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=encrypted-source Encrypts with default source and key length to encrypted-source directory.
php artisan encrypt-source --destination=encrypted-source --keylength=8 Encrypts default source to encrypted-source directory and the encryption key length is 8.
php artisan encrypt-source --destination=encrypted-source --key="somecustomstrongstring" Encrypts default source to encrypted-source directory and the encryption key is somecustomstrongstring

Updated with ♥ by The Departed

Support can be shared by staring this repository.

Alternatives to thedepart3d/laravel-source-encryption

betterapp/laravel-db-encrypter

Provides database model attribute encryption/decryption

728,563 361
codezero/encrypter

Encrypt and decrypt strings in PHP.

101,773 2
sbamtr/laravel-source-encrypter

Laravel Source Encrypter

52,154 586
tiknil/file-vault
7,719 2

Version History

Version Released PHP Laravel License
1.1.3.1 ^8.1 ^8|^9|^10 MIT
1.1.3 ^8.1 ^8|^9|^10 MIT
1.1.2 >=8.1.0 ^8|^9 MIT
1.1.1 >=8.1.0 ^8|^9 MIT
1.1.0 >=8.1.0 ^8|^9 MIT