PHPackages                             sarfraznawaz2005/phexecute - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. sarfraznawaz2005/phexecute

ActiveProject[Testing &amp; Quality](/categories/testing)

sarfraznawaz2005/phexecute
==========================

Phexecute is PHP code runner

18322CSS

Since May 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sarfraznawaz2005/Phexecute)[ Packagist](https://packagist.org/packages/sarfraznawaz2005/phexecute)[ RSS](/packages/sarfraznawaz2005-phexecute/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Introduction
------------

[](#introduction)

Phexecute is browser-based tool to quickly test/run PHP code. It comes with ability to easily check your code with [PHP Code\_Sniffer](https://github.com/squizlabs/PHP_CodeSniffer), 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.

Features
--------

[](#features)

- PHP Code\_Sniffer to easily identify and fix problematic parts of code (through PSR-2)
- Run PHPUnit tests and see results right inside browser
- Uses Symfony VarDumper component easy visualization of vars, arrays, objects
- Ability to save unlimited snippets
- Live PHP error highlighting
- Easy to extend

Screenshots
-----------

[](#screenshots)

Main Screen

[![Main Window](https://camo.githubusercontent.com/4b1178da82df3a3c1abbb5ea4c6bb2a881084eaad60956a0ce50ff82e4286e18/68747470733a2f2f7261772e6769746875622e636f6d2f7361726672617a6e6177617a323030352f7068657865637574652f6d61737465722f73637265656e73686f74732f6d61696e2e706e67)](https://camo.githubusercontent.com/4b1178da82df3a3c1abbb5ea4c6bb2a881084eaad60956a0ce50ff82e4286e18/68747470733a2f2f7261772e6769746875622e636f6d2f7361726672617a6e6177617a323030352f7068657865637574652f6d61737465722f73637265656e73686f74732f6d61696e2e706e67)

PHP Code\_Sniffer Results

[![CodeSniffer Window](https://camo.githubusercontent.com/61ea7742b8fa7d78c1bcfe831e82ee8ab34d40dd85838d5d84e261dc9b1e6bc1/68747470733a2f2f7261772e6769746875622e636f6d2f7361726672617a6e6177617a323030352f7068657865637574652f6d61737465722f73637265656e73686f74732f636f6465736e69666665722e706e67)](https://camo.githubusercontent.com/61ea7742b8fa7d78c1bcfe831e82ee8ab34d40dd85838d5d84e261dc9b1e6bc1/68747470733a2f2f7261772e6769746875622e636f6d2f7361726672617a6e6177617a323030352f7068657865637574652f6d61737465722f73637265656e73686f74732f636f6465736e69666665722e706e67)

PHPUnit Results

[![PHPUnit Window](https://camo.githubusercontent.com/a2f754e446e2bf0ba395bcfadbaa3d97f13d98c322882d28d303e021b12f1284/68747470733a2f2f7261772e6769746875622e636f6d2f7361726672617a6e6177617a323030352f7068657865637574652f6d61737465722f73637265656e73686f74732f706870756e69742e706e67)](https://camo.githubusercontent.com/a2f754e446e2bf0ba395bcfadbaa3d97f13d98c322882d28d303e021b12f1284/68747470733a2f2f7261772e6769746875622e636f6d2f7361726672617a6e6177617a323030352f7068657865637574652f6d61737465722f73637265656e73686f74732f706870756e69742e706e67)

---

Requirements
------------

[](#requirements)

- PHP 5.3 or above
- Enabled [mod\_rewrite](http://httpd.apache.org/docs/current/mod/mod_rewrite.html) module

Installation
------------

[](#installation)

You can [download](https://github.com/sarfraznawaz2005/Phexecute/archive/master.zip) it directly OR install via composer:

`composer create-project -n -s dev sarfraznawaz2005/phexecute`

Using Composer Packages inside Phexecute
----------------------------------------

[](#using-composer-packages-inside-phexecute)

Any 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.

Adding Custom Packages
----------------------

[](#adding-custom-packages)

Adding your own packages is extremely simple so much so that you don't need to write single line of PHP code.

By 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.

The format for a text file is:

`EntryName` (This name will appear in corresponding menu)

`---`

`PHP Code` (The actual php code to run when menu entry is clicked)

`---`

`true OR false` (whether or not to run code automatically)

For example here is how `phpinfo` entry is defined (in storage/data/system/01-phpinfo.txt):

`phpinfo`

`---`

`phpinfo();`

`---`

`true`

**Note:** Please notice that extensions of those files should be **.txt** although you can name these files anything.

You can extend Phexecute to any level you want. For example, you can use it to create automation commands, deploy scripts, run git commands, etc.

Please checkout text files in directories under **storage\\data** to get an idea of how default menu entries are defined.

**`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.

Contribute
----------

[](#contribute)

Please 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](https://github.com/squizlabs/PHP_CodeSniffer). If you find any bug, error or issue, please report it at [issue tracker](https://github.com/sarfraznawaz2005/Phexecute/issues).

Donation?##
-----------

[](#donation)

In order to donate, please go to [this page](https://load.payoneer.com/LoadToPage.aspx?email=sarfraznawaz2005@hotmail.com&amount=20) and proceed with your donation information. Thanks!

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2015 Sarfraz Ahmed and [Contributors](https://github.com/sarfraznawaz2005/Phexecute/graphs/contributors)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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/3f9bbcf3a6cda5f8bdf9afe10c20f5c6f563fc1a4d628a9af25c5fdec3f9c216?d=identicon)[sarfraznawaz2005](/maintainers/sarfraznawaz2005)

---

Top Contributors

[![sarfraznawaz2005](https://avatars.githubusercontent.com/u/201788?v=4)](https://github.com/sarfraznawaz2005 "sarfraznawaz2005 (28 commits)")[![sarfrazonsupport](https://avatars.githubusercontent.com/u/142378572?v=4)](https://github.com/sarfrazonsupport "sarfrazonsupport (2 commits)")

---

Tags

phpphpunitrunnersimpletesttester

### Embed Badge

![Health badge](/badges/sarfraznawaz2005-phexecute/health.svg)

```
[![Health](https://phpackages.com/badges/sarfraznawaz2005-phexecute/health.svg)](https://phpackages.com/packages/sarfraznawaz2005-phexecute)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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