PHPackages                             slavytuch/laravel-source-encrypter - 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. slavytuch/laravel-source-encrypter

ActiveLibrary[Security](/categories/security)

slavytuch/laravel-source-encrypter
==================================

Encrypt Laravel application source files with phpBolt

v1.7.0(today)01↑2900%MITPHPPHP &gt;=7.2.5

Since Jul 23Pushed todayCompare

[ Source](https://github.com/slavytuch/Laravel-Source-Encrypter)[ Packagist](https://packagist.org/packages/slavytuch/laravel-source-encrypter)[ Docs](https://github.com/slavytuch/Laravel-Source-Encrypter)[ RSS](/packages/slavytuch-laravel-source-encrypter/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Source Encrypter
========================

[](#laravel-source-encrypter)

[![Latest Stable Version](https://camo.githubusercontent.com/69911619da62e217e417207ba314c9dfabfc653232fd7ba94bd9a3660aa79936/68747470733a2f2f706f7365722e707567782e6f72672f736c617679747563682f6c61726176656c2d736f757263652d656e637279707465722f762f737461626c65)](https://packagist.org/packages/slavytuch/laravel-source-encrypter)[![License](https://camo.githubusercontent.com/ba37c97fc45b4452726f3454aea8d5f51715a316e99c5dc225d60807b9d50772/68747470733a2f2f706f7365722e707567782e6f72672f736c617679747563682f6c61726176656c2d736f757263652d656e637279707465722f6c6963656e7365)](LICENSE)

[![](cover.jpg)](cover.jpg)

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

Supports Illuminate Console 6 through 13, including Laravel 13.

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

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

[](#installation)

### Step 1

[](#step-1)

Install the [phpBolt extension](https://phpbolt.com/download-phpbolt/) for the PHP runtime that will execute the command.

### Step 2

[](#step-2)

Require the package with composer using the following command:

```
composer require --dev slavytuch/laravel-source-encrypter
```

### 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' => [
    // ...
    \sbamtr\LaravelSourceEncrypter\SourceEncryptServiceProvider::class,
];
```

#### For Lumen

[](#for-lumen)

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

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

### Step 4 (Optional)

[](#step-4-optional)

You can publish the config file with this following command:

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

**Note:** If you are using Lumen, you have to use [this package](https://github.com/laravelista/lumen-vendor-publish).

Usage
-----

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

OptionDescriptionExamplesourcePath(s) to encryptapp,routes,public/a.phpdestinationDestination directoryencryptedkeylengthEncryption key length6forceForce 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=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`.Originally created by Siavash Bamshadnia and distributed under the MIT license. This fork preserves the original runtime behavior and adds Laravel 13 package compatibility.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 92.3% 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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/93070887?v=4)[slavytuch](/maintainers/slavytuch)[@slavytuch](https://github.com/slavytuch)

---

Top Contributors

[![SiavashBamshadnia](https://avatars.githubusercontent.com/u/3998368?v=4)](https://github.com/SiavashBamshadnia "SiavashBamshadnia (36 commits)")[![ionikdev](https://avatars.githubusercontent.com/u/47270092?v=4)](https://github.com/ionikdev "ionikdev (1 commits)")[![jamesRUS52](https://avatars.githubusercontent.com/u/39707635?v=4)](https://github.com/jamesRUS52 "jamesRUS52 (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

laravelencryptionlumenencryptsourceencrypterioncubeencryptorphpBolt

### Embed Badge

![Health badge](/badges/slavytuch-laravel-source-encrypter/health.svg)

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

###  Alternatives

[sbamtr/laravel-source-encrypter

Laravel Source Encrypter

58748.9k](/packages/sbamtr-laravel-source-encrypter)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M245](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77922.3M185](/packages/laravel-mcp)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k14](/packages/laravel-surveyor)

PHPackages © 2026

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