PHPackages                             bestfornet/php-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. bestfornet/php-obfuscator

ActivePackage[Security](/categories/security)

bestfornet/php-obfuscator
=========================

PHP obfuscator

1.2.2(7mo ago)0744MITPHPPHP ^7.4

Since Nov 25Pushed 2mo agoCompare

[ Source](https://github.com/bestfornet/php-obfuscator)[ Packagist](https://packagist.org/packages/bestfornet/php-obfuscator)[ RSS](/packages/bestfornet-php-obfuscator/feed)WikiDiscussions master Synced today

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

PHP Obfuscator
==============

[](#php-obfuscator)

Free, Open Source, Published under the MIT License.

This tool is for commercial and non commercial usage. It basically cover all features of [yakpro-po](https://github.com/pk-fr/yakpro-po)under PHP library available from composer.

Example usage
-------------

[](#example-usage)

```
use bestfornet\PhpObfuscator\Obfuscator;

$obfuscator = new Obfuscator([
    'allowed_mime_types' => ['text/x-php'],
    'obfuscation_options' => ['no-obfuscate-variable-name', 'no-obfuscate-method-name', 'no-obfuscate-class-name', 'no-obfuscate-property-name']
]);

$obfuscator->obfuscateFile('/dir/example_file.php', '/new_dir/obfuscated_file.php');

$obfuscator->obfuscateDirectory('/dir/to_obfuscate/', '/dir/obfuscated/');
```

Configuration
-------------

[](#configuration)

```
no-strip-indentation              multi line output
strip-indentation                 single line output

no-shuffle-statements             do not shuffle statements
shuffle-statements                       shuffle statements

no-obfuscate-string-literal       do not obfuscate string literals
obfuscate-string-literal                 obfuscate string literals

no-obfuscate-loop-statement       do not obfuscate loop statements
obfuscate-loop-statement                 obfuscate loop statements

no-obfuscate-if-statement         do not obfuscate if statements
obfuscate-if-statement                   obfuscate if statements

no-obfuscate-constant-name        do not obfuscate constant names
obfuscate-constant-name                  obfuscate constant names

no-obfuscate-variable-name        do not obfuscate variable names
obfuscate-variable-name                  obfuscate variable names

no-obfuscate-function-name        do not obfuscate function names
obfuscate-function-name                  obfuscate function names

no-obfuscate-class_constant-name  do not obfuscate class constant names
obfuscate-class_constant-name            obfuscate class constant names

no-obfuscate-class-name           do not obfuscate class names
obfuscate-class-name                     obfuscate class names

no-obfuscate-interface-name       do not obfuscate interface names
obfuscate-interface-name                 obfuscate interface names

no-obfuscate-trait-name           do not obfuscate trait names
obfuscate-trait-name                     obfuscate trait names

no-obfuscate-property-name        do not obfuscate property names
obfuscate-property-name                  obfuscate property names

no-obfuscate-method-name          do not obfuscate method names
obfuscate-method-name                    obfuscate method names

no-obfuscate-namespace-name       do not obfuscate namespace names
obfuscate-namespace-name                 obfuscate namespace names

no-obfuscate-label-name           do not obfuscate label names
obfuscate-label-name                     obfuscate label names

scramble-mode     identifier|hexa|numeric         force scramble mode
scramble-length   length ( min=2; max = 16 for scramble_mode=identifier,
                                    max = 32 for scramble_mode = hexa or numeric)

```

Credits
-------

[](#credits)

- [pk-fr](https://github.com/pk-fr) Thanks for obfuscation core!
- [PHP-Parser 1.x](https://github.com/nikic/PHP-Parser/tree/1.x)
- [nikic](https://github.com/nikic)

License
-------

[](#license)

MIT license

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance75

Regular maintenance activity

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

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

2

Last Release

220d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d32444cc7f25962c534a01fb2edc75ee2b86947952b37cb2fb8bc78bb116bf25?d=identicon)[martin.tuma](/maintainers/martin.tuma)

---

Top Contributors

[![pmaslak](https://avatars.githubusercontent.com/u/4546483?v=4)](https://github.com/pmaslak "pmaslak (21 commits)")[![martin-tuma](https://avatars.githubusercontent.com/u/76657259?v=4)](https://github.com/martin-tuma "martin-tuma (14 commits)")

---

Tags

phpobfuscator

### Embed Badge

![Health badge](/badges/bestfornet-php-obfuscator/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[v.chetkov/php-clean-architecture

PHP Clean Architecture

14661.1k](/packages/vchetkov-php-clean-architecture)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

9410.8k](/packages/ahmed-bhs-doctrine-doctor)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

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