├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── bin ├── decode.php └── decodeRecursive.php ├── composer.json ├── composer.lock ├── docs └── enphp_bugs.md ├── public ├── decode.php └── index.php ├── src ├── AutoDecoder.php ├── KnownEnphpBugs │ ├── ExplodeDelimiterWithApostropheException.php │ └── KnownEnphpBugsException.php ├── NodeDumpers │ └── ConditionExpressionNodeDumper.php ├── NodeVisitors │ ├── BeautifyNodeVisitor.php │ ├── FindAndRemoveGlobalVariableNameNodeVisitor.php │ ├── FunctionGlobalStringNodeVisitor.php │ ├── FunctionLikeNodeVisitor.php │ ├── FunctionLocalVariableRenameNodeVisitor.php │ ├── GlobalStringNodeVisitor.php │ ├── RemoveDefineGlobalVariableNameNodeVisitor.php │ └── RemoveUnusedConstFetchNodeVisitor.php └── PrettyPrinter │ └── StandardPrettyPrinter.php └── tests ├── bug_samples └── Rush.php ├── samples ├── AdminGroup.php ├── Setting.php ├── admin.php ├── common.php └── index.php └── test.php /.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/README.md -------------------------------------------------------------------------------- /bin/decode.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/bin/decode.php -------------------------------------------------------------------------------- /bin/decodeRecursive.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/bin/decodeRecursive.php -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/composer.lock -------------------------------------------------------------------------------- /docs/enphp_bugs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/docs/enphp_bugs.md -------------------------------------------------------------------------------- /public/decode.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/public/decode.php -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/public/index.php -------------------------------------------------------------------------------- /src/AutoDecoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/AutoDecoder.php -------------------------------------------------------------------------------- /src/KnownEnphpBugs/ExplodeDelimiterWithApostropheException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/KnownEnphpBugs/ExplodeDelimiterWithApostropheException.php -------------------------------------------------------------------------------- /src/KnownEnphpBugs/KnownEnphpBugsException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/KnownEnphpBugs/KnownEnphpBugsException.php -------------------------------------------------------------------------------- /src/NodeDumpers/ConditionExpressionNodeDumper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/NodeDumpers/ConditionExpressionNodeDumper.php -------------------------------------------------------------------------------- /src/NodeVisitors/BeautifyNodeVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/NodeVisitors/BeautifyNodeVisitor.php -------------------------------------------------------------------------------- /src/NodeVisitors/FindAndRemoveGlobalVariableNameNodeVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/NodeVisitors/FindAndRemoveGlobalVariableNameNodeVisitor.php -------------------------------------------------------------------------------- /src/NodeVisitors/FunctionGlobalStringNodeVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/NodeVisitors/FunctionGlobalStringNodeVisitor.php -------------------------------------------------------------------------------- /src/NodeVisitors/FunctionLikeNodeVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/NodeVisitors/FunctionLikeNodeVisitor.php -------------------------------------------------------------------------------- /src/NodeVisitors/FunctionLocalVariableRenameNodeVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/NodeVisitors/FunctionLocalVariableRenameNodeVisitor.php -------------------------------------------------------------------------------- /src/NodeVisitors/GlobalStringNodeVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/NodeVisitors/GlobalStringNodeVisitor.php -------------------------------------------------------------------------------- /src/NodeVisitors/RemoveDefineGlobalVariableNameNodeVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/NodeVisitors/RemoveDefineGlobalVariableNameNodeVisitor.php -------------------------------------------------------------------------------- /src/NodeVisitors/RemoveUnusedConstFetchNodeVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/NodeVisitors/RemoveUnusedConstFetchNodeVisitor.php -------------------------------------------------------------------------------- /src/PrettyPrinter/StandardPrettyPrinter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/src/PrettyPrinter/StandardPrettyPrinter.php -------------------------------------------------------------------------------- /tests/bug_samples/Rush.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/tests/bug_samples/Rush.php -------------------------------------------------------------------------------- /tests/samples/AdminGroup.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/tests/samples/AdminGroup.php -------------------------------------------------------------------------------- /tests/samples/Setting.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/tests/samples/Setting.php -------------------------------------------------------------------------------- /tests/samples/admin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/tests/samples/admin.php -------------------------------------------------------------------------------- /tests/samples/common.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/tests/samples/common.php -------------------------------------------------------------------------------- /tests/samples/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/tests/samples/index.php -------------------------------------------------------------------------------- /tests/test.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ganlvtech/php-enphp-decoder/HEAD/tests/test.php --------------------------------------------------------------------------------