PHPackages                             gafit/laravel-web-tinker - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. gafit/laravel-web-tinker

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

gafit/laravel-web-tinker
========================

Artisan Tinker in your browser

1.4.9(2y ago)154MITJavaScriptPHP &gt;=7.0

Since Feb 8Pushed 2y agoCompare

[ Source](https://github.com/gafit/laravel-web-tinker)[ Packagist](https://packagist.org/packages/gafit/laravel-web-tinker)[ Docs](https://github.com/gafit/laravel-web-tinker)[ RSS](/packages/gafit-laravel-web-tinker/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (8)Dependencies (4)Versions (21)Used By (0)

Artisan Tinker in your browser
==============================

[](#artisan-tinker-in-your-browser)

[![Latest Version on Packagist](https://camo.githubusercontent.com/76bf8834922bfc0fb90d0c38cb2d02bbc45fa8e9ccefaa831f77f8b1e0184be2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f6c61726176656c2d7765622d74696e6b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-web-tinker)[![Build Status](https://camo.githubusercontent.com/1242bc88062f6c6d37cb9a344f67f111828bd2f4efabd97ce9a61797384db582/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7370617469652f6c61726176656c2d7765622d74696e6b65722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/spatie/laravel-web-tinker)[![StyleCI](https://camo.githubusercontent.com/99fc4e2a6d34e97abe5db77d858b34211cee785a685834d2222330c319e8c8a0/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136303534353634322f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/160545642)[![Quality Score](https://camo.githubusercontent.com/a6ec7ac7ca1b7520e21670486228031bd7a0c80c024752ce7ea5171ae9f71194/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7370617469652f6c61726176656c2d7765622d74696e6b65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/spatie/laravel-web-tinker)[![Total Downloads](https://camo.githubusercontent.com/68dd0fe85f7db0921cc00da82d1e5ef1a2e90eb3824193d57c0cce969ed64b94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6c61726176656c2d7765622d74696e6b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-web-tinker)

Artisan's tinker command is a great way to tinker with your application in the terminal. Unfortunately running a few lines of code, making edits, and copy/pasting code can be bothersome. Wouldn't it be great to tinker in the browser?

This package will add a route to your application where you can tinker to your heart's content.

[![Web tinker light](https://camo.githubusercontent.com/0603f41a58c0c74d860aa2d4b47a06aea54c8ca1fbd8df30f6242221e09a7b94/68747470733a2f2f7370617469652e6769746875622e696f2f6c61726176656c2d7765622d74696e6b65722f6c696768742e706e67)](https://camo.githubusercontent.com/0603f41a58c0c74d860aa2d4b47a06aea54c8ca1fbd8df30f6242221e09a7b94/68747470733a2f2f7370617469652e6769746875622e696f2f6c61726176656c2d7765622d74696e6b65722f6c696768742e706e67)

In case light hurts your eyes, there's a dark mode too.

[![Web tinker dark](https://camo.githubusercontent.com/e0016af41658038bb7c85ffec02e62988e2cb721eadb3521dfa4784daf0d1343/68747470733a2f2f7370617469652e6769746875622e696f2f6c61726176656c2d7765622d74696e6b65722f6461726b2e706e67)](https://camo.githubusercontent.com/e0016af41658038bb7c85ffec02e62988e2cb721eadb3521dfa4784daf0d1343/68747470733a2f2f7370617469652e6769746875622e696f2f6c61726176656c2d7765622d74696e6b65722f6461726b2e706e67)

🚨 A word to the wise 🚨
----------------------

[](#-a-word-to-the-wise-)

This package can run arbritary code. Unless you know what you are doing, you should never install or use this in a production environment, or any environment where you handle real world data.

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

[](#installation)

You can install the package via composer:

```
composer require spatie/laravel-web-tinker --dev
```

Next, you must publish the assets from this package by running this command.

```
php artisan web-tinker:install
```

Optionally, you can publish the config file of the package.

```
php artisan vendor:publish --provider="Spatie\WebTinker\WebTinkerServiceProvider" --tag="config"
```

This is the content that will be published to `config/web-tinker.php`

```
return [

    /*
     * The web tinker page will be available on this path.
     */
    'path' => '/tinker',

    /*
     * Possible values are 'auto', 'light' and 'dark'.
     */
    'theme' => 'auto',

    /*
     * By default this package will only run in local development.
     * Do not change this, unless you know what your are doing.
     */
    'enabled' => env('APP_ENV') === 'local',
];
```

Usage
-----

[](#usage)

By default this package will only run in a local environment.

Visit `/tinker` in your local environment of your app to view the tinker page.

Authorization
-------------

[](#authorization)

Should you want to run this in another environment (we do not recommend this), there are two steps you must perform.

1. You must register a `viewWebTinker` ability. A good place to do this is in the `AuthServiceProvider` that ships with Laravel.

```
public function boot()
{
    $this->registerPolicies();

    Gate::define('viewWebTinker', function ($user = null) {
        // return true if access to web tinker is allowed
    });
}
```

2. You must set the `enabled` variable in the `web-tinker` config file to `true`.

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Postcardware
------------

[](#postcardware)

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.

We publish all received postcards [on our company website](https://spatie.be/en/opensource/postcards).

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

This package was inspired by and uses code from the [nova-tinker-tool](https://github.com/beyondcode/nova-tinker-tool) package by [Marcel Pociot](https://github.com/mpociot).

Support us
----------

[](#support-us)

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).

Does your business depend on our contributions? Reach out and support us on [Patreon](https://www.patreon.com/spatie). All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 51.4% 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 ~97 days

Recently: every ~420 days

Total

20

Last Release

810d ago

Major Versions

0.0.1 → 1.0.02019-02-08

PHP version history (4 changes)0.0.1PHP ^7.1

1.3.0PHP ^7.2

1.4.2PHP ^7.0

1.4.7PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/50094fe2ee0ec584247280cbf1a6efe884881f4fd8ff77372b0f2dc563a7310d?d=identicon)[gbelisario](/maintainers/gbelisario)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (57 commits)")[![rzv-me](https://avatars.githubusercontent.com/u/38325118?v=4)](https://github.com/rzv-me "rzv-me (17 commits)")[![gbelisario](https://avatars.githubusercontent.com/u/4459641?v=4)](https://github.com/gbelisario "gbelisario (16 commits)")[![willemvb](https://avatars.githubusercontent.com/u/1336390?v=4)](https://github.com/willemvb "willemvb (12 commits)")[![chapeupreto](https://avatars.githubusercontent.com/u/834048?v=4)](https://github.com/chapeupreto "chapeupreto (2 commits)")[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (2 commits)")[![ahmic](https://avatars.githubusercontent.com/u/13452362?v=4)](https://github.com/ahmic "ahmic (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![CraftLogan](https://avatars.githubusercontent.com/u/10950466?v=4)](https://github.com/CraftLogan "CraftLogan (1 commits)")[![gcgomes](https://avatars.githubusercontent.com/u/42471322?v=4)](https://github.com/gcgomes "gcgomes (1 commits)")

---

Tags

laraveldebugTinkerdevelopmentweb-tinkergafit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gafit-laravel-web-tinker/health.svg)

```
[![Health](https://phpackages.com/badges/gafit-laravel-web-tinker/health.svg)](https://phpackages.com/packages/gafit-laravel-web-tinker)
```

###  Alternatives

[spatie/laravel-web-tinker

Artisan Tinker in your browser

1.2k3.8M6](/packages/spatie-laravel-web-tinker)[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k124.3M624](/packages/barryvdh-laravel-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

388283.0k3](/packages/recca0120-laravel-tracy)[php-console/laravel-service-provider

Laravel service provider to handle PHP errors, dump variables, execute PHP code remotely in Google Chrome

7361.2k1](/packages/php-console-laravel-service-provider)

PHPackages © 2026

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