redmoon / tinker-server
Tinker with your variables while working on your application.
Requires
- php: ^7.1
- clue/stdio-react: ^2.2
- illuminate/support: 5.8.*
- laravel/tinker: ^1.0
- psy/psysh: ^0.9.9
- react/socket: ^1.3
Requires (Dev)
- orchestra/testbench: 3.8.*
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-11-06 08:06:39 UTC
README
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.
Installation
You can install the package via composer:
composer require redmoon/tinker-server
The package will register itself automatically.
Optionally you can publish the package configuration using:
php artisan vendor:publish --provider=RedMoon\\TinkerServer\\TinkerServerServiceProvider
This will publish a file called 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 rluna@webdcg.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.