{"id":16294173,"url":"https://github.com/sarfraznawaz2005/phexecute","last_synced_at":"2025-08-08T14:24:25.003Z","repository":{"id":32580088,"uuid":"36163139","full_name":"sarfraznawaz2005/Phexecute","owner":"sarfraznawaz2005","description":"Phexecute - Awesome PHP Code Runner","archived":false,"fork":false,"pushed_at":"2021-08-05T16:07:49.000Z","size":6491,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T14:22:13.567Z","etag":null,"topics":["php","phpunit","runner","simpletest","tester"],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sarfraznawaz2005.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":"2015-05-24T08:31:20.000Z","updated_at":"2021-08-05T16:07:52.000Z","dependencies_parsed_at":"2022-08-24T20:30:19.902Z","dependency_job_id":null,"html_url":"https://github.com/sarfraznawaz2005/Phexecute","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2FPhexecute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2FPhexecute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2FPhexecute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2FPhexecute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarfraznawaz2005","download_url":"https://codeload.github.com/sarfraznawaz2005/Phexecute/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244551800,"owners_count":20470919,"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":["php","phpunit","runner","simpletest","tester"],"created_at":"2024-10-10T20:14:24.511Z","updated_at":"2025-03-20T04:30:27.629Z","avatar_url":"https://github.com/sarfraznawaz2005.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction ##\n\nPhexecute is browser-based tool to quickly test/run PHP code. It comes with ability to easily check your code with [PHP Code_Sniffer][1], run **PHPUnit** tests and more, all **inside the browser**. Phexecute can dramatically improve development time when something needs to be tested. Extending Phexecute to add your own packages/modules is also extremely easy. \n\n## Features ##\n\n - PHP Code_Sniffer to easily identify and fix problematic parts of code (through PSR-2)\n - Run PHPUnit tests and see results right inside browser\n - Uses Symfony VarDumper component easy visualization of vars, arrays, objects\n - Ability to save unlimited snippets\n - Live PHP error highlighting\n - Easy to extend\n\n## Screenshots ##\n\nMain Screen\n\n![Main Window](https://raw.github.com/sarfraznawaz2005/phexecute/master/screenshots/main.png)\n\nPHP Code_Sniffer Results\n\n![CodeSniffer Window](https://raw.github.com/sarfraznawaz2005/phexecute/master/screenshots/codesniffer.png)\n\nPHPUnit Results\n\n![PHPUnit Window](https://raw.github.com/sarfraznawaz2005/phexecute/master/screenshots/phpunit.png)\n\n\n---\n\n## Requirements ##\n\n - PHP 5.3 or above\n - Enabled [mod_rewrite][2] module\n\n## Installation ##\n\nYou can [download][3] it directly OR install via composer:\n\n`composer create-project -n -s dev sarfraznawaz2005/phexecute`\n\n## Using Composer Packages inside Phexecute ##\n\nAny packages that you install via composer are automatically available inside Phexecute. For example, `dump` function comes from `symfony/var-dumper` package specified in composer.json file and we can use it directly inside Phexecute like `dump($var)`. So any packages specified in composer.json file are available for you to use them directly inside Phexecute code editor. This essentially means you can extend Phexecute to any level you want by adding your packages and use them in Phexecute code editor.\n\n## Adding Custom Packages ##\n\nAdding your own packages is extremely simple so much so that you don't need to write single line of PHP code.\n\nBy default, Phexecute has three menu items **System**, **Packages** and **Snippets**. They come from pure text files that can be found in **storage\\data** folder respectively. Should you need to add your own menu entry, simply create a text file in any of those three directories and it will auto-magically appear in Phexecute menu.\n\nThe format for a text file is:\n\n`EntryName` (This name will appear in corresponding menu)\n\n`---`\n\n`PHP Code` (The actual php code to run when menu entry is clicked)\n\n`---`\n\n`true OR false` (whether or not to run code automatically)\n\nFor example here is how `phpinfo` entry is defined (in storage/data/system/01-phpinfo.txt):\n\n`phpinfo`\n\n`---`\n\n`phpinfo();`\n\n`---`\n\n`true`\n\n**Note:** Please notice that extensions of those files should be **.txt** although you can name these files anything.\n\nYou can extend Phexecute to any level you want. For example, you can use it to create automation commands, deploy scripts, run git commands, etc.\n\nPlease checkout text files in directories under **storage\\data** to get an idea of how default menu entries are defined.\n\n**`CAUTION`**: Phexecute uses `eval` to run the code. It is strongly recommended that you should use it for local testing only and not on production server due to security reasons. If you do, you use it on your own risk.\n\n## Contribute ##\n\nPlease feel free to fork and modify/extend Phexecute and send a pull request with your changes! To establish a consistent code quality, please check your code using [PHP_CodeSniffer][4]. If you find any bug, error or issue, please report it at [issue tracker][5].\n\n## Donation?##\n\nIn order to donate, please go to [this page][6] and proceed with your donation information. Thanks!\n\n## License ##\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Sarfraz Ahmed  and [Contributors][7]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n  [1]: https://github.com/squizlabs/PHP_CodeSniffer\n  [2]: http://httpd.apache.org/docs/current/mod/mod_rewrite.html\n  [3]: https://github.com/sarfraznawaz2005/Phexecute/archive/master.zip\n  [4]: https://github.com/squizlabs/PHP_CodeSniffer\n  [5]: https://github.com/sarfraznawaz2005/Phexecute/issues\n  [6]: https://load.payoneer.com/LoadToPage.aspx?email=sarfraznawaz2005@hotmail.com\u0026amount=20\n  [7]: https://github.com/sarfraznawaz2005/Phexecute/graphs/contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarfraznawaz2005%2Fphexecute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarfraznawaz2005%2Fphexecute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarfraznawaz2005%2Fphexecute/lists"}