{"id":16252596,"url":"https://github.com/ganlvtech/php-enphp-decoder","last_synced_at":"2025-03-16T13:30:38.907Z","repository":{"id":47433182,"uuid":"173292349","full_name":"ganlvtech/php-enphp-decoder","owner":"ganlvtech","description":"EnPHP Decoder written in PHP","archived":false,"fork":false,"pushed_at":"2019-07-02T16:13:49.000Z","size":74,"stargazers_count":121,"open_issues_count":2,"forks_count":76,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T09:31:15.155Z","etag":null,"topics":["decompiler","enphp","php"],"latest_commit_sha":null,"homepage":"https://enphp.ganlv.tech/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ganlvtech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-01T11:39:21.000Z","updated_at":"2025-02-17T12:09:28.000Z","dependencies_parsed_at":"2022-08-23T11:30:36.445Z","dependency_job_id":null,"html_url":"https://github.com/ganlvtech/php-enphp-decoder","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganlvtech%2Fphp-enphp-decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganlvtech%2Fphp-enphp-decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganlvtech%2Fphp-enphp-decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganlvtech%2Fphp-enphp-decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganlvtech","download_url":"https://codeload.github.com/ganlvtech/php-enphp-decoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243815569,"owners_count":20352192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decompiler","enphp","php"],"created_at":"2024-10-10T15:14:08.387Z","updated_at":"2025-03-16T13:30:38.595Z","avatar_url":"https://github.com/ganlvtech.png","language":"PHP","readme":"# EnPHP Decoder\n\n[![Build Status](https://travis-ci.com/ganlvtech/php-enphp-decoder.svg?branch=master)](https://travis-ci.com/ganlvtech/php-enphp-decoder)\n\n[EnPHP](https://github.com/djunny/enphp) Decoder written in PHP. Powered by [PHP-Parser](https://github.com/nikic/PHP-Parser).\n\n## Try it online\n\nCheck the link in repository description.\n\n## Installation\n\n### Get It By Git Clone\n\nYou can get the code by git clone. And then install the dependencies by yourserlf with [Composer](http://getcomposer.org/).\n\n```bash\ngit clone https://github.com/ganlvtech/php-enphp-decoder.git\ncd php-enphp-decoder\ncomposer install\n```\n\n### Download From GitHub Release\n\nYou can also download it from [GitHub Release](https://github.com/ganlvtech/php-enphp-decoder/releases).\n\nDownload the `zip` file and unzip them into a folder. All dependencies have been installed.\n\n## Usage\n\n### Decode by Web UI\n\n```bash\ncd public/\nphp -S 127.0.0.1:8000\n```\n\nVisit \u003chttps://127.0.0.1:8000/\u003e on Browser. You can select a file to upload, and you will download a decoded file.\n\n#### Deploy to Web Server\n\nServe by `Nginx` and `php-fpm`.\n\n```nginx\nserver {\n\tlisten 80;\n\t# listen 443 ssl;\n\troot /home/ubuntu/php-enphp-decoder/public;\n\tindex index.php index.html index.htm;\n\tserver_name enphp.ganlvtech.cn;\n\n\tlocation / {\n\t\ttry_files $uri $uri/ =404;\n\t}\n\n\tlocation ~ \\.php$ {\n\t\tfastcgi_pass unix:/run/php/php7.0-fpm.sock;\n\t\tinclude snippets/fastcgi-php.conf;\n\t}\n}\n```\n\nYou may need to change port, root, server_name and php version.\n\n### Decode One File\n\n```bash\nphp bin/decode.php input.php output.php\n```\n\nCall `bin/decode.php` decode `input.php` and save it to `output.php`.\n\n### Decode All Files in A Directory\n\n```bash\nphp bin/decodeRecursive.php dir/\n```\n\nCall `bin/decodeRecursive.php` decode all php files in `dir/` recursively and save it to its original path.\n\nYou can use absolute path like `/path/to/your/dir/`.\n\n**CAUTION: This will OVERWRITE all php files! If any error happened with the decoder, your files MAY NOT BE RECOVERED! Please backup your files!**\n\n## About EnPHP Bugs\n\nSee [docs/enphp_bugs.md](docs/enphp_bugs.md).\n\n## License\n\nGNU GENERAL PUBLIC LICENSE Version 3\n\n    EnPHP Decoder\n    Copyright (C) 2019  Ganlv\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganlvtech%2Fphp-enphp-decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganlvtech%2Fphp-enphp-decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganlvtech%2Fphp-enphp-decoder/lists"}