PHPackages                             adlawson/veval - 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. adlawson/veval

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

adlawson/veval
==============

Virtual eval

1.0.0(11y ago)614912MITPHPPHP ~5.4

Since Sep 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/adlawson/php-veval)[ Packagist](https://packagist.org/packages/adlawson/veval)[ RSS](/packages/adlawson-veval/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (4)Versions (2)Used By (2)

Veval (Virtual eval)
====================

[](#veval-virtual-eval)

[![Virtual Eval](https://camo.githubusercontent.com/7e754a2e468480cc2c72aadb9bc746814c0d65d2ef37d8b942a9b119e2fe9a54/687474703a2f2f6d656469612e67697068792e636f6d2f6d656469612f4b7a4e434b5538774d4e4c6e572f67697068792e676966)](https://camo.githubusercontent.com/7e754a2e468480cc2c72aadb9bc746814c0d65d2ef37d8b942a9b119e2fe9a54/687474703a2f2f6d656469612e67697068792e636f6d2f6d656469612f4b7a4e434b5538774d4e4c6e572f67697068792e676966)

[![Master branch build status](https://camo.githubusercontent.com/3b99f45aaac44a2b46ccd3e6c7cda6e1e70e544ae6b266ad3edc26bed401256c/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f61646c6177736f6e2f7068702d766576616c2f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/adlawson/php-veval)[![Published version](https://camo.githubusercontent.com/097bbe2c8a97593909ceb01b1d31b21ca6825b06e226ea143b940feca38e6373/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61646c6177736f6e2f766576616c2e7376673f7374796c653d666c6174)](https://packagist.org/packages/adlawson/veval)[![PHP ~5.4](https://camo.githubusercontent.com/d17f8501180e9ee65a2404119522314c89cc300ff60ed7f91e9951e43e6d3aab/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d7e352e342d3838393242462e7376673f7374796c653d666c6174)](http://php.net)[![MIT Licensed](https://camo.githubusercontent.com/edeb7d6e72260cbe21703a9de7f67e93cfb2cf1c1506292314c7ea9b9edb303b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61646c6177736f6e2f766576616c2e7376673f7374796c653d666c6174)](LICENSE)

**Veval** is an implementation of eval that uses a virtual file system to store code for evaluation and then `require` it back out. It should work on PHP installations that don't support or have disabled native `eval`.

It can be installed in whichever way you prefer, but I recommend [Composer](https://packagist.org/packages/adlawson/veval).

```
{
    "require": {
        "adlawson/veval": "*"
    }
}
```

Documentation
-------------

[](#documentation)

The **Veval** API is exposed as a collection of `Veval\` namespaced functions, though you may prefer to use `Veval::` to take advantage of autoloading and namespace aliasing (PHP &lt; 5.6).

```
