PHPackages                             stichoza/laravel-coderunner - 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. [CLI &amp; Console](/categories/cli)
4. /
5. stichoza/laravel-coderunner

ActiveLibrary[CLI &amp; Console](/categories/cli)

stichoza/laravel-coderunner
===========================

Add Laravel support to CodeRunner

v1.0.9(3y ago)12783[1 issues](https://github.com/Stichoza/laravel-coderunner/issues)MITPHPPHP ^7.2|^8.0

Since Apr 2Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/Stichoza/laravel-coderunner)[ Packagist](https://packagist.org/packages/stichoza/laravel-coderunner)[ RSS](/packages/stichoza-laravel-coderunner/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (11)Used By (0)

Laravel CodeRunner
==================

[](#laravel-coderunner)

[![Latest Stable Version](https://camo.githubusercontent.com/d62e82c9b42f3fb56f5524dcab473f3f8f683d28dacb3a9cd4cee8b01adcd472/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f53746963686f7a612f6c61726176656c2d636f646572756e6e65722e737667)](https://packagist.org/packages/stichoza/laravel-coderunner) [![Total Downloads](https://camo.githubusercontent.com/c3b1536afb248cd0d5ed5c80dd11b88bfecdaae5e3dffbeed40b7be06487c4cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f53746963686f7a612f6c61726176656c2d636f646572756e6e65722e737667)](https://packagist.org/packages/stichoza/laravel-coderunner) [![Downloads Month](https://camo.githubusercontent.com/159f8ab27ece56573183c3cb27f9fa8d8dfca274788d26a929902a4a93db9344/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f53746963686f7a612f6c61726176656c2d636f646572756e6e65722e737667)](https://packagist.org/packages/stichoza/laravel-coderunner) [![PayPal donation](https://camo.githubusercontent.com/b48a7f9ca978349b83c641e4901221d7e84374bcb3300a43f739835cf930e802/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d626c75652e737667)](https://paypal.me/stichoza)

Add Laravel support to **[CodeRunner](https://coderunnerapp.com)** (Tinker in CodeRunner).

[![Screen Shot 2020-04-02 at 14 58 24](https://user-images.githubusercontent.com/1139050/78280940-ef2cfa80-752a-11ea-8946-03eab08483f9.png)](https://user-images.githubusercontent.com/1139050/78280940-ef2cfa80-752a-11ea-8946-03eab08483f9.png)

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

[](#installation)

Install this package globally via [Composer](https://getcomposer.org/).

```
composer global require stichoza/laravel-coderunner
```

And initialize default laravel app (optional).

```
laravel-coderunner install-default
```

Usage
-----

[](#usage)

### Add Laravel in CodeRunner langauges

[](#add-laravel-in-coderunner-langauges)

1. Go to CodeRunner preferences.
2. Navigate to Languages tab.
3. Right-click on `PHP` and select Duplicate.
4. Name new language `Laravel`.
5. Write following in the "Run Command" field:

```
laravel-coderunner $filename
```

[![Screen Shot 2020-04-02 at 14 36 34](https://user-images.githubusercontent.com/1139050/78239965-6ba1e800-74ef-11ea-8990-09caf61b8a87.png)](https://user-images.githubusercontent.com/1139050/78239965-6ba1e800-74ef-11ea-8990-09caf61b8a87.png)

Note

If you have composer installed correctly in your system, [vendor binaries](https://getcomposer.org/doc/articles/vendor-binaries.md) would be already added in your `.profile` or `.bash_profile`. If not, add it to your profile paths, or otherwise go to CodeRunner preferences, navigate to Advanced tab and add binary path (e.g. `/Users/YOUR_USERNAME/.composer/vendor/bin`) to `PATH` shell variable:

[![Screen Shot 2020-04-02 at 14 40 22](https://user-images.githubusercontent.com/1139050/78240331-e9fe8a00-74ef-11ea-8da6-102ade27cbe6.png)](https://user-images.githubusercontent.com/1139050/78240331-e9fe8a00-74ef-11ea-8da6-102ade27cbe6.png)

### Running in default laravel app

[](#running-in-default-laravel-app)

Default laravel app is already installed via `laravel-coderunner install-default` command. If you want to reset the default app, you can run:

```
laravel-coderunner reset-default
```

### Running in specific project

[](#running-in-specific-project)

By default, the code is evaluated in default Laravel installation described above. Follow this steps if you want to run code in different project:

1. Assuming you already have Laravel available in CodeRunner, click "Run Settings..." button right next to Run and Stop buttons.
2. Enter **absolute** path to your project in Arguments field.

[![Screen Shot 2020-04-02 at 14 44 34](https://user-images.githubusercontent.com/1139050/78240762-7f018300-74f0-11ea-9e42-fa0ad2b4612b.png)](https://user-images.githubusercontent.com/1139050/78240762-7f018300-74f0-11ea-9e42-fa0ad2b4612b.png)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 95.9% 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 ~108 days

Recently: every ~244 days

Total

10

Last Release

1258d ago

PHP version history (2 changes)v1.0.0PHP ^7.2

v1.0.9PHP ^7.2|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1139050?v=4)[Levan Velijanashvili](/maintainers/stichoza)[@Stichoza](https://github.com/Stichoza)

---

Top Contributors

[![Stichoza](https://avatars.githubusercontent.com/u/1139050?v=4)](https://github.com/Stichoza "Stichoza (47 commits)")[![jpcaparas](https://avatars.githubusercontent.com/u/2406808?v=4)](https://github.com/jpcaparas "jpcaparas (2 commits)")

---

Tags

coderunnerlaravellaravel-frameworklaravel-tinkertinkerlaravelTinkershellMACtinkerwellcoderunnerpsy

### Embed Badge

![Health badge](/badges/stichoza-laravel-coderunner/health.svg)

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

###  Alternatives

[stepanenko3/nova-command-runner

Laravel Nova tool for running Artisan and bash(shell) commands.

36983.0k](/packages/stepanenko3-nova-command-runner)[intonate/tinker-zero

Use laravel/tinker on your laravel-zero applications

4860.9k16](/packages/intonate-tinker-zero)[mwguerra/web-terminal

A web-based terminal component for Filament/Laravel with command whitelisting and multiple connection types

251.1k](/packages/mwguerra-web-terminal)

PHPackages © 2026

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