beyondcode/
laravel-tinker-server
g4t.io

Laravel Tinker Server Package

203 stars by Paul Redmond

Tinker with your variables while working on your application.

README from beyondcode/laravel-tinker-server Open on GitHub →

Laravel Tinker Server

Latest Version on Packagist Build Status Quality Score Total Downloads

This package will give you a tinker server, that collects all your tinker call outputs and allows you to interact with the variables on the fly.

About this package

This package was built as part of my PHP Package Development video course. Register for the course to learn how this package was built.

Installation

You can install the package via composer:

composer require beyondcode/laravel-tinker-server

The package will register itself automatically.

Optionally you can publish the package configuration using:

php artisan vendor:publish --provider=BeyondCode\\LaravelTinkerServer\\LaravelTinkerServerServiceProvider

This will publish a file called laravel-tinker-server.php in your config folder.

In the config file, you can specify the dump server host that you want to listen on, in case you want to change the default value.

Usage

Start the tinker server by calling the artisan command:

php artisan tinker-server

And then you can put tinker calls in your methods to dump variable content as well as instantly making them available in an interactive REPL shell.

$user = App\User::find(1);

tinker($user);

In addition to the tinker method, there is also a td method, that behaves similar to dd. It tinkers the variable and dies the current request.

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

More from the ecosystem

marcreichel/
laya-php
g4t.io
3 53

LayaPHP: Self-Hosted Text Classification for PHP and Laravel

Classify text in PHP without an LLM bill: typed decisions in 100+ languages, self-hosted. Laravel-ready SDK for Laya, a Jev AI alternative.

ai classification decision-engine
marcreichel/laya-php via Laravel News
Josh-Dovey/
postcodes-laravel
g4t.io
5 9

Postcodes for Laravel: GB Postcode Lookup and Geography Data

Postcodes for Laravel adds typed GB postcode lookups, validation, geography data, distance searches, and test fakes through the GB Postcodes API.

Josh-Dovey/postcodes-laravel via Laravel News
RedberryProducts/
mailbox-for-laravel
g4t.io
4 115

Mailbox for Laravel: Preview and Test Rendered Email

Mailbox for Laravel captures outgoing mail in a local dashboard and lets you test rendered HTML, recipients, and attachments with fluent assertions.

RedberryProducts/mailbox-for-laravel via Laravel News