PHPackages                             luminarix/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. luminarix/laravel-web-tinker

Abandoned → [luminarix/laravel-web-tinker-pro](/?search=luminarix%2Flaravel-web-tinker-pro)ArchivedLibrary

luminarix/laravel-web-tinker
============================

Small Laravel package to use Tinker in your browser

v1.1.0(1y ago)34.9k↑50%[1 PRs](https://github.com/luminarix/laravel-web-tinker/pulls)MITTypeScriptPHP ^8.3CI passing

Since May 15Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/luminarix/laravel-web-tinker)[ Packagist](https://packagist.org/packages/luminarix/laravel-web-tinker)[ Docs](https://github.com/luminarix/laravel-web-tinker)[ GitHub Sponsors](https://github.com/luminarix)[ RSS](/packages/luminarix-laravel-web-tinker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (14)Used By (0)

Small Laravel package to use Tinker in your browser
===================================================

[](#small-laravel-package-to-use-tinker-in-your-browser)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5d61431d8046fff188f498964ed46f59fce43e3cb799c7116990a4e1bbe49abb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756d696e617269782f6c61726176656c2d7765622d74696e6b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/luminarix/laravel-web-tinker)[![GitHub Tests Action Status](https://camo.githubusercontent.com/334d4ec169ac45d9d1b0f2dd99c07ea8c2c6a479b0232d7bd3ab77ca7269bba8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756d696e617269782f6c61726176656c2d7765622d74696e6b65722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/luminarix/laravel-web-tinker/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/964f97a2961a487053a5f0bcfa66292524cfdda3770cc32355afc29b4b979987/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756d696e617269782f6c61726176656c2d7765622d74696e6b65722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/luminarix/laravel-web-tinker/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/54be2722a34adf0ef16f20174bc97b943d70f4e302fa4291f9e59194a70d3f60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c756d696e617269782f6c61726176656c2d7765622d74696e6b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/luminarix/laravel-web-tinker)

This package allows you to use Tinker in your browser. Wildly inspired by Spatie's [Laravel Web Tinker](https://github.com/spatie/laravel-web-tinker), but with added functionality, and React frontend.

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

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

This package can run arbitrary 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.

Known issues
------------

[](#known-issues)

- None. Please report any issues you find.

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

[](#requirements)

- PHP ^8.3
- Laravel ^11.0

Extra features
--------------

[](#extra-features)

- Tabs for multiple code snippets
    - Tabs can be renamed
    - Tabs have their own code history
    - Both of the above are saved in local storage, so they persist between sessions and page reloads
- Runtime counter displayed while loading and total runtime displayed in the final output
- Loading state is displayed while the code is running

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

[](#installation)

#### If you've used Spatie's Laravel Web Tinker before, please remove the config/web-tinker.php file before installing this package.

[](#if-youve-used-spaties-laravel-web-tinker-before-please-remove-the-configweb-tinkerphp-file-before-installing-this-package)

You can install the package via composer:

```
composer require luminarix/laravel-web-tinker
```

Publish the assets:

```
php artisan vendor:publish --tag="laravel-web-tinker-assets"
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-web-tinker-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-web-tinker-views"
```

Or if you want to publish everything at once, you can use

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

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

Modifying the output
--------------------

[](#modifying-the-output)

You can modify the output of tinker by specifying an output modifier in the `output_modifier` key of the `web-tinker` config file. An output modifier is any class that implements `\Luminarix\LaravelWebTinker\OutputModifiers\OutputModifier`.

This is how that interface looks like.

```
namespace Luminarix\LaravelWebTinker\OutputModifiers;

interface OutputModifier
{
    public function modify(string $output = ''): string;
}
```

The default install of this package will use the `PrefixDataTime` output modifier which prefixes the output from Tinker with the current date time and the run-time of the code.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

Credits
-------

[](#credits)

- [Spatie](https://github.com/spatie) and the [original contributors](https://github.com/spatie/laravel-web-tinker/contributors)
- [Luminarix Labs](https://github.com/luminarix)
- [Lajos Gere](https://github.com/gere-lajos)
- [Márk Magyar](https://github.com/xHeaven)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance52

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~30 days

Total

12

Last Release

406d ago

Major Versions

v0.1.5 → v1.0.02024-07-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb808569841214f1b6b59dca08b367015cdfbcf9826397f20db1efd3439e71bd?d=identicon)[xHeaven](/maintainers/xHeaven)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (51 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (51 commits)")[![xHeaven](https://avatars.githubusercontent.com/u/14284867?v=4)](https://github.com/xHeaven "xHeaven (43 commits)")[![gere-lajos](https://avatars.githubusercontent.com/u/21358947?v=4)](https://github.com/gere-lajos "gere-lajos (18 commits)")

---

Tags

laravelLuminarix Labslaravel-web-tinker

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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