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

ActiveLibrary[Security](/categories/security)

smhtet/laravel-obfuscator
=========================

Reversible identifier obfuscation for Laravel projects (obfuscate locally, deobfuscate on trusted server with same key).

v1.0.0(3mo ago)02↓91.7%MITPHPPHP ^8.2

Since Mar 23Pushed 3mo agoCompare

[ Source](https://github.com/SoeMoeHtet18/php-obfuscator)[ Packagist](https://packagist.org/packages/smhtet/laravel-obfuscator)[ Docs](https://github.com/passiongeekmm/laravel-obfuscator)[ RSS](/packages/smhtet-laravel-obfuscator/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Php Laravel Obfuscator (Composer package)
=========================================

[](#php-laravel-obfuscator-composer-package)

This package provides reversible PHP identifier obfuscation for Laravel projects.

Scope (what it actually obfuscates)

- Local variable names everywhere.
- Private members (methods/properties) and their `self/static/parent` and `$this->...` references.
- With `--aggressive`, protected members too.

It does **not** rename public APIs/classes/interfaces/traits, because Laravel (container bindings, reflection, route/model conventions) will break.

Install (into a Laravel app)
----------------------------

[](#install-into-a-laravel-app)

Add it as a path repository (for local dev in this mono-repo):

```
{
  "repositories": [
    {
      "type": "path",
      "url": "../laravel-obfuscator"
    }
  ],
  "require": {
    "Php/laravel-obfuscator": "*"
  }
}
```

Then:

```
composer update Php/laravel-obfuscator
```

Laravel auto-discovers the service provider. If you have discovery disabled, register: `Php\LaravelObfuscator\LaravelObfuscatorServiceProvider`.

Use (Artisan)
-------------

[](#use-artisan)

Obfuscate (writes `.php_obfuscation_key_hash`):

```
php artisan code:obfuscate "YOUR_KEY" --path=app
```

Deobfuscate:

```
php artisan code:deobfuscate "YOUR_KEY" --path=app
```

Options

- `--dry-run`: show which files would be processed.
- `--aggressive`: also rename protected members (higher risk).
- `--path=...` repeatable: scan multiple directories.
- `--include-vendor`: off by default. Do not enable unless you know exactly what you're doing.

Use (vendor/bin CLI, no Laravel boot)
-------------------------------------

[](#use-vendorbin-cli-no-laravel-boot)

```
vendor/bin/php-obfuscate obfuscate "YOUR_KEY" --root=/path/to/project --path=app --path=routes
vendor/bin/php-obfuscate deobfuscate "YOUR_KEY" --root=/path/to/project --path=app --path=routes
```

php-obfuscator
==============

[](#php-obfuscator)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance82

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

96d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63f6402c07450b66019a58d54d5993d34ba6e2f0115b49b8e568eb1a7e9ebc1f?d=identicon)[smhtet](/maintainers/smhtet)

---

Top Contributors

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

---

Tags

phplaravelsecurityobfuscatorobfuscation

### Embed Badge

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

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

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.6k](/packages/larastan-larastan)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

9782.1M162](/packages/laravel-ai)[laravel/surveyor

Static analysis tool for Laravel applications.

8690.3k12](/packages/laravel-surveyor)[jorijn/laravel-security-checker

Added Laravel functionality to the Enlightn Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.

2031.9M1](/packages/jorijn-laravel-security-checker)[tzsk/otp

A secure, database-free One-Time Password (OTP) generator and verifier for PHP and Laravel.

242661.0k1](/packages/tzsk-otp)

PHPackages © 2026

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