PHPackages                             laraeval/laraeval - 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. laraeval/laraeval

ActiveLibrary

laraeval/laraeval
=================

PHP Code evaluator for Laravel 4

v1.0.6(12y ago)4289[2 issues](https://github.com/rioastamal/laraeval/issues)MITJavaScriptPHP &gt;=5.3.7

Since Jul 9Pushed 12y ago1 watchersCompare

[ Source](https://github.com/rioastamal/laraeval)[ Packagist](https://packagist.org/packages/laraeval/laraeval)[ RSS](/packages/laraeval-laraeval/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

Laraeval [![Build Status](https://camo.githubusercontent.com/66b4ee3008c3aaa1ca507453beb651918eebf1e2f71c0a96d4129b681053ebe0/68747470733a2f2f7472617669732d63692e6f72672f61737461736f66742f6c6172616576616c2e706e67)](https://travis-ci.org/astasoft/laraeval)
===============================================================================================================================================================================================================================================================

[](#laraeval-)

It is often when developing an application we want to try some code just to figure it out something or test the output. We ended up by creating a bunch of dummy controllers or routes just to test. Introducing **Laraeval**! a Laravel 4 package for evaluating your PHP code right inside your browser. With Laraeval you can quickly prototyping code that flying around inside your head without having to create a single file. Just fire up your browser and point to Laraeval address and you're ready to go!.

Everybody love screenshot so here are some of Laraeval's screenshots.

Code Editor Window [![Code Editor Window](https://camo.githubusercontent.com/3816b89244e123da6af0e792a31ba859b02a4067e0a1eac0e423f1194ad97ef4/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f343637343130372f6c6172616576616c2f636f64652d656469746f722e706e67)](https://camo.githubusercontent.com/3816b89244e123da6af0e792a31ba859b02a4067e0a1eac0e423f1194ad97ef4/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f343637343130372f6c6172616576616c2f636f64652d656469746f722e706e67)

Output Window [![Output Window](https://camo.githubusercontent.com/cc67693aea6be7208b272653f161e0ee7edbb80f9258aa353f8271fb4656660f/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f343637343130372f6c6172616576616c2f6f75747075742d77696e646f772e706e67)](https://camo.githubusercontent.com/cc67693aea6be7208b272653f161e0ee7edbb80f9258aa353f8271fb4656660f/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f343637343130372f6c6172616576616c2f6f75747075742d77696e646f772e706e67)

Profiler Window [![Profiler Window](https://camo.githubusercontent.com/5caaee574788fcf5bba21669b480bf4165bfbfefeeeefeee02122830912fed2a/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f343637343130372f6c6172616576616c2f70726f66696c65722d77696e646f772e706e67)](https://camo.githubusercontent.com/5caaee574788fcf5bba21669b480bf4165bfbfefeeeefeee02122830912fed2a/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f343637343130372f6c6172616576616c2f70726f66696c65722d77696e646f772e706e67)

Storage Window [![Profiler Window](https://camo.githubusercontent.com/ae1119e7a981a08a21d9c57e5895d322c38a8639223bef9ef4fb39065bc4c627/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f343637343130372f6c6172616576616c2f73746f726167652d77696e646f772e706e67)](https://camo.githubusercontent.com/ae1119e7a981a08a21d9c57e5895d322c38a8639223bef9ef4fb39065bc4c627/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f343637343130372f6c6172616576616c2f73746f726167652d77696e646f772e706e67)

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

[](#installation)

Add `laraeval/laraeval` as a requirement to `composer.json`:

```
{
    ...
    "require": {
        ...
        "laraeval/laraeval": "dev-master"
        ...
    },
}
```

Update composer:

```
$ php composer.phar update

```

Add the provider to your `app/config/app.php`:

```
'providers' => array(

    ...
    'Laraeval\Laraeval\LaraevalServiceProvider',

),
```

Publish package assets:

```
$ php artisan asset:publish laraeval/laraeval

```

Publish package config:

```
$ php artisan config:publish laraeval/laraeval

```

Usage
-----

[](#usage)

You can access Laraeval with the following URL .

### Persistent Storage

[](#persistent-storage)

Sometime you don't want to lose all your code when browser is closed, refreshed, crashed or anything else. How to do that? Simple, just add parameter `storageid=[ID]` to the query string when opening Laraeval. You can change `[ID]` with anything you like. Take a look an example below.

`http://yourhost/index.php/laraeval?storageid=foo`

Now even when your browser is closed all your codes is not gone. Laraeval put it into your browser local storage. When you open `http://yourhost/index.php/laraeval?storageid=foo` for the next time all your previous code will show up again.

Configuration
-------------

[](#configuration)

You can edit the Laraeval configuration by editing file `app/config/packages/laraeval/laraeval/config.php`.

- `allowed_ips`: List of IP addresses that allowed to access Laraeval.
- `trusted_proxies`: List of Proxy IP that need to be trusted by Symfony Request object. This is needed when your application is behind proxy such as load balancer or such things. Use value '\*' to trust all IP.
- `localstorage_prefix`: Prefix used for saving the content (code) to the browser localstorage object.

Credit
------

[](#credit)

- Laraeval is heavily inspired by Laravel 3 Bundle called *Console* . The author seems didn't have time to port it to L4 so I build Laraeval :).
- An awesome javascript editor CodeMirror

Contribute
----------

[](#contribute)

There are a lot of improvements that can be made to Laraeval. Feel free to send me a **Pull Request**.

License
-------

[](#license)

Laraeval is open source licensed under [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~14 days

Total

6

Last Release

4619d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90c388a6c1eba6ff5d5b19959e936189b5537caecf2b10fc9ec285c1de95e4ca?d=identicon)[rioastamal](/maintainers/rioastamal)

---

Top Contributors

[![rioastamal](https://avatars.githubusercontent.com/u/469847?v=4)](https://github.com/rioastamal "rioastamal (61 commits)")

---

Tags

laravelilluminateeval

### Embed Badge

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

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

###  Alternatives

[codebot/entrust

This package provides a flexible way to add Role-based Permissions to Laravel

1596.6k](/packages/codebot-entrust)[mpyw/laravel-mysql-system-variable-manager

A tiny extension of MySqlConnection that manages session system variables

115.8k](/packages/mpyw-laravel-mysql-system-variable-manager)

PHPackages © 2026

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