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

ActiveLibrary[Security](/categories/security)

karem-sobhy/laravel-source-encrypter
====================================

Laravel Source Encrypter

1.4(1y ago)012MITPHPPHP &gt;=7.2.5

Since Aug 24Pushed 1y agoCompare

[ Source](https://github.com/Karem-sobhy/Laravel-Source-Encrypter)[ Packagist](https://packagist.org/packages/karem-sobhy/laravel-source-encrypter)[ RSS](/packages/karem-sobhy-laravel-source-encrypter/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

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

[](#laravel-source-encrypter)

[![Latest Stable Version](https://camo.githubusercontent.com/4b9d667afbf992cb6ba24b7682058084208c6ffaaf76be145adfbaa0d5a720f1/68747470733a2f2f706f7365722e707567782e6f72672f6b6172656d2d736f6268792f6c61726176656c2d736f757263652d656e637279707465722f762f737461626c65)](https://packagist.org/packages/karem-sobhy/laravel-source-encrypter)[![License](https://camo.githubusercontent.com/ab332023535188e0365c0f2218f15fe31fb7d4e38f1c4abd148dcf092fdee83b/68747470733a2f2f706f7365722e707567782e6f72672f6b6172656d2d736f6268792f6c61726176656c2d736f757263652d656e637279707465722f6c6963656e7365)](https://github.com/karem-sobhy/Laravel-Source-Encrypter)

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

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

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

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

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

[](#installation)

### Step 1

[](#step-1)

At the first, 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 --dev Karem-sobhy/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' => [
    // ...
    \karemsobhy\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(\karemsobhy\LaravelSourceEncrypter\SourceEncryptServiceProvider::class);
```

### Step 4 (Optional)

[](#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](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`.Written with ♥ by Siavash Bamshadnia.

Modified by Karem Sobhy.

Please support me by staring this repository.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 79.1% 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 ~0 days

Total

5

Last Release

679d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19779701?v=4)[Karem Sobhy](/maintainers/Karem-sobhy)[@Karem-sobhy](https://github.com/Karem-sobhy)

---

Top Contributors

[![SiavashBamshadnia](https://avatars.githubusercontent.com/u/3998368?v=4)](https://github.com/SiavashBamshadnia "SiavashBamshadnia (34 commits)")[![Karem-sobhy](https://avatars.githubusercontent.com/u/19779701?v=4)](https://github.com/Karem-sobhy "Karem-sobhy (8 commits)")[![jamesRUS52](https://avatars.githubusercontent.com/u/39707635?v=4)](https://github.com/jamesRUS52 "jamesRUS52 (1 commits)")

---

Tags

laravelencryptionlumenencryptsourceencrypterioncubeencryptorphpBolt

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/karem-sobhy-laravel-source-encrypter/health.svg)](https://phpackages.com/packages/karem-sobhy-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.2M194](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[propaganistas/laravel-disposable-email

Disposable email validator

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

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.2k14](/packages/tallstackui-tallstackui)

PHPackages © 2026

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