PHPackages                             ganlv/mfenc-decompiler - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ganlv/mfenc-decompiler

ActiveProject[Utility &amp; Helpers](/categories/utility)

ganlv/mfenc-decompiler
======================

A decompiler for php mfenc

82166[1 PRs](https://github.com/ganlvtech/php-mfenc-decompiler/pulls)PHP

Since Jul 23Pushed 5y ago8 watchersCompare

[ Source](https://github.com/ganlvtech/php-mfenc-decompiler)[ Packagist](https://packagist.org/packages/ganlv/mfenc-decompiler)[ RSS](/packages/ganlv-mfenc-decompiler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP mfenc Decompiler
====================

[](#php-mfenc-decompiler)

PHP mfenc 反编译器

目前不保证反编译结果的正确性，仅供参考。

反汇编和结构化之后的汇编指令应该没什么问题。

Usage
-----

[](#usage)

```
use Ganlv\MfencDecompiler\AutoDecompiler;
use Ganlv\MfencDecompiler\Helper;

require __DIR__ . '/../vendor/autoload.php';

file_put_contents(
    $output_file,
    Helper::prettyPrintFile(
        AutoDecompiler::autoDecompileAst(
            Helper::parseCode(
                file_get_contents($input_file)
            )
        )
    )
);
```

Source Files
------------

[](#source-files)

```
DfsDisassembler.php  主反汇编器（DFS算法）
Disassembler1.php    一级指令反汇编器
Disassembler2.php    二级指令反汇编器
instructions.php     二级指令匹配列表

GraphViewer.php                       反汇编指令列表->有向图转换器
DirectedGraph.php                     有向图类
DirectedGraphSimplifier.php           用于简化有向图的抽象类
DirectedGraphSimpleSimplifier.php     简单地合并1进1出和没有指令的节点
DirectedGraphStructureSimplifier.php  分析流程结构生成if、loop、break等语句

BaseDecompiler.php  基础反编译器
Decompiler.php      反编译指令
Beautifier.php      反编译后代码美化

VmDecompiler.php    自动将从ast中找到VM，并对其进行反编译的类
AutoDecompiler.php  全自动反汇编器

Helper.php                       助手函数
Formatter.php                    测试过程中用于把乱码变量名替换成英文
instructions_display_format.php  指令翻译

```

LICENSE
-------

[](#license)

暂时保留所有权利

All Right Reserved.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity42

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e66e746f168551b6b3d2a83b594105b78a43bff3646730f15725fd7b515eaff3?d=identicon)[xiaohuilam](/maintainers/xiaohuilam)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ganlv-mfenc-decompiler/health.svg)

```
[![Health](https://phpackages.com/badges/ganlv-mfenc-decompiler/health.svg)](https://phpackages.com/packages/ganlv-mfenc-decompiler)
```

PHPackages © 2026

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