PHPackages                             thedepart3d/laravel-source-encryption - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. thedepart3d/laravel-source-encryption

ActiveLibrary[Security](/categories/security)

thedepart3d/laravel-source-encryption
=====================================

Laravel Source Code Encryptor

1.1.3.1(3y ago)330MITPHPPHP ^8.1

Since Jul 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/theDepart3d/laravel-source-encryption)[ Packagist](https://packagist.org/packages/thedepart3d/laravel-source-encryption)[ RSS](/packages/thedepart3d-laravel-source-encryption/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (4)Dependencies (2)Versions (7)Used By (0)

[![](logo-img-white.svg)](logo-img-white.svg)

This package encrypts your php code with [phpBolt](https://phpbolt.com)

For Laravel 9\*

- [Installation](#installation)
- [Usage](#usage)

Installation
------------

[](#installation)

### Step 1

[](#step-1)

You have to [install phpBolt](https://phpbolt.com/download-phpbolt/).

### Step 2

[](#step-2)

Require the package with composer using the following command:

```
composer require thedepart3d/laravel-source-encryption
```

### Step 3

[](#step-3)

#### For Laravel

[](#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)

[](#step-4-optional)

You can publish the config file with this following command:

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

Usage
-----

[](#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:

OptionDescriptionExamplesourcePath(s) to encryptapp,routes,public/a.phpdestinationDestination directoryencrypted-sourcekeyCustom Encryption keykeylengthEncryption key length16forceForce the operation to run when destination directory already exists### Usage Examples

[](#usage-examples)

CommandDescription`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.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Recently: every ~64 days

Total

6

Last Release

1140d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.1.0

1.1.3PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/87b18e95bb6cb0b1cbda5c325bd26eb78c9be02a5887c5b0d6cfeff936ecdeec?d=identicon)[thedepart3d](/maintainers/thedepart3d)

---

Top Contributors

[![theDepart3d](https://avatars.githubusercontent.com/u/109445905?v=4)](https://github.com/theDepart3d "theDepart3d (19 commits)")

---

Tags

laravelencryptionencryptsourceencrypterencryptorphpBolt

### Embed Badge

![Health badge](/badges/thedepart3d-laravel-source-encryption/health.svg)

```
[![Health](https://phpackages.com/badges/thedepart3d-laravel-source-encryption/health.svg)](https://phpackages.com/packages/thedepart3d-laravel-source-encryption)
```

###  Alternatives

[sbamtr/laravel-source-encrypter

Laravel Source Encrypter

58545.6k](/packages/sbamtr-laravel-source-encrypter)[daanra/laravel-lets-encrypt

A Laravel package to easily generate SSL certificates using Let's Encrypt

22650.9k](/packages/daanra-laravel-lets-encrypt)[ercsctt/laravel-file-encryption

Secure file encryption and decryption for Laravel applications

642.6k](/packages/ercsctt-laravel-file-encryption)[dolphiq/laravel-aescrypt

AES encrypt and decrypt Eloquent attributes inspired by elocryptfive

171.7k](/packages/dolphiq-laravel-aescrypt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
