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

ActiveLibrary

ibf/laravel-encrypter
=====================

Laravel Encrypter

0102PHP

Since Feb 4Pushed 2y ago2 watchersCompare

[ Source](https://github.com/iceberg55/laravel-encrypter)[ Packagist](https://packagist.org/packages/ibf/laravel-encrypter)[ RSS](/packages/ibf-laravel-encrypter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Encrypter
=================

[](#laravel-encrypter)

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

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

- [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 ibf/laravel-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' => [
    // ...
    \ibf\LaravelEncrypter\LaravelEncryptServiceProvider::class,
];
```

#### For Lumen

[](#for-lumen)

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

```
$app->register(\ibf\LaravelEncrypter\LaravelEncryptServiceProvider::class);
```

### Step 4 (Optional)

[](#step-4-optional)

You can publish the config file with this following command:

```
php artisan vendor:publish --provider="ibf\LaravelEncrypter\LaravelEncryptServiceProvider" --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 ibf-encrypt
```

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

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

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

This command has these optional options:

OptionDescriptionExamplesourcePath(s) to encryptapp,routes,public/a.phpdestinationDestination directoryencryptedkeylengthEncryption key length12forceForce the operation to run when destination directory already exists### Usage Examples

[](#usage-examples)

CommandDescription`php artisan ibf-encrypt`Encrypts with default source, destination and keylength. If the destination directory exists, asks for delete it.`php artisan ibf-encrypt --force`Encrypts with default source, destination and keylength. If the destination directory exists, deletes it.`php artisan ibf-encrypt --source=app`Encrypts `app` directory to the default destination with default keylength.`php artisan ibf-encrypt --destination=dist`Encrypts with default source and key length to `dist` directory.`php artisan ibf-encrypt --destination=dist --keylength=8`Encrypts default source to `dist` directory and the encryption key length is `8`.Written with ♥ by Iman Abbasi.

Please support me by staring this repository.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e8b0995d4a03e32c0d19f9f3278e85b94078f9122ad6f130e18e274878e26a9?d=identicon)[iceberg55](/maintainers/iceberg55)

---

Top Contributors

[![imanabbasi](https://avatars.githubusercontent.com/u/13015657?v=4)](https://github.com/imanabbasi "imanabbasi (14 commits)")

### Embed Badge

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

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

PHPackages © 2026

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