PHPackages                             jaydeepukani/laravel-source-obfuscator - 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. jaydeepukani/laravel-source-obfuscator

ActiveLibrary[Security](/categories/security)

jaydeepukani/laravel-source-obfuscator
======================================

Laravel Source Obfuscator

v1.0.0(1y ago)11681MITPHPPHP &gt;=7.2|&gt;=8.0

Since Aug 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jaydeepukani/Laravel-Source-Obfuscator)[ Packagist](https://packagist.org/packages/jaydeepukani/laravel-source-obfuscator)[ RSS](/packages/jaydeepukani-laravel-source-obfuscator/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Source Obfuscator
=========================

[](#laravel-source-obfuscator)

[![StyleCI](https://camo.githubusercontent.com/5b3661ea74836a5b2911f9cb784913f22936c74fdc01b5fff1a88b75bb8e14c9/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3834383634303733382f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/848640738)[![Latest Stable Version](https://camo.githubusercontent.com/4ad8158fa06c6876fadbd54decec2ca9b025bb946b806e14663fb84851163759/68747470733a2f2f706f7365722e707567782e6f72672f6a617964656570756b616e692f6c61726176656c2d736f757263652d6f626675736361746f722f762f737461626c65)](https://packagist.org/packages/jaydeepukani/laravel-source-obfuscator)[![License](https://camo.githubusercontent.com/8caded14810b8c574fb21fc7c373e55a646e5ad8c8359d7a31a7a77f80f8aa7a/68747470733a2f2f706f7365722e707567782e6f72672f6a617964656570756b616e692f6c61726176656c2d736f757263652d6f626675736361746f722f6c6963656e7365)](https://github.com/jaydeepukani/Laravel-Source-Obfuscator)[![CodeFactor](https://camo.githubusercontent.com/8560a59a60fc812868c68947c658c51ff01957006287a53c103849629fd3d9b4/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f6a617964656570756b616e692f6c61726176656c2d736f757263652d6f626675736361746f722f6261646765)](https://www.codefactor.io/repository/github/jaydeepukani/laravel-source-obfuscator)

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

This package is forked from [sbamtr/laravel-source-obfuscator](https://github.com/SiavashBamshadnia/Laravel-Source-Encrypter)This package encrypts your php code with [phpBolt](https://phpbolt.com)

For Laravel 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 jaydeepukani/laravel-source-obfuscator
```

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

### Step 4 (Optional)

[](#step-4-optional)

You can publish the config file with this following command:

```
php artisan vendor:publish --provider="JaydeepUkani\LaravelSourceObfuscator\SourceEncryptServiceProvider" --tag=config
```

Usage
-----

[](#usage)

Open terminal in project root and run this command:

```
php artisan encrypt-source
```

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

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

Also the default encryption key length is `6`. You can change it in `config/source-obfuscator.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`.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

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

628d ago

### Community

Maintainers

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

---

Top Contributors

[![jaydeepukani](https://avatars.githubusercontent.com/u/51261125?v=4)](https://github.com/jaydeepukani "jaydeepukani (3 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

laravelencryptionencryptobfuscateobfuscatorsourcephpBolt

### Embed Badge

![Health badge](/badges/jaydeepukani-laravel-source-obfuscator/health.svg)

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

###  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)[ph-7/obfuscator

 Simple and effective Obfuscator PHP class (this is not a stupid base64 encoding script, but a real and effective obfuscation script)

3762.5k](/packages/ph-7-obfuscator)[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)
