vbarbarosh / laravel-debug-eval
A rudimentary UI with backend for evaluating PHP remotely. For debugging purposes only.
Installs: 25 313
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
pkg:composer/vbarbarosh/laravel-debug-eval
Requires
- php: ^8.1
- ext-json: *
Requires (Dev)
- laravel/framework: 8.83.27
README
A UI and backend for evaluating PHP remotely. For debugging purposes only.
Installation
composer require vbarbarosh/laravel-debug-eval
Usage in Laravel
Route::any('/laravel-debug-eval', function () {
// 1. Ensure that current user has access to this endpoint
return vbarbarosh\laravel_debug_eval();
});
Executing long running task
longrun([ 'init' => function () { return Article::query()->pluck('articles.id'), }, 'done' => function () { dump('done'); }, 'run' => function ($items) { $query = Article::query()->whereIn('id', $items); Article::backup($query); }, ]);
YouTube
Credits
- Right panel with a list of snippets was inspired by https://github.com/tinkerun/tinkerun