Laravel Event Visualizer

Last update: May 9, 2022

Laravel Event Visualizer

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Laravel package to visualize events with their handlers, including jobs to chain them together.

Installation

You can install the package via composer:

composer require jonaspardon/laravel-event-visualizer --dev

You can publish the config file with:

php artisan vendor:publish --tag="event-visualizer-config"

You can publish the views with:

php artisan vendor:publish --tag="event-visualizer-views"

Usage

Visit your-app.test/event-visualizer on a non-production environment.

Auto discovery

Auto discovery of events and jobs might still fail. If you're using this and encounter errors, please open an issue.

If you want to enable auto discovery, enable auto_discover_jobs_and_events in your config. This will currently disable manual discovery. If this gives you any problems, you should opt for manual discovery.

Refer to the table below for support.

Syntax Examples Supported
Static call with inline class Bus::dispatch(new Job()) yes
Bus::dispatchNow(new Job()) yes
Bus::dispatchSync(new Job()) yes
Bus::dispatchToQueue(new Job()) yes
Bus::dispatchAfterResponse(new Job()) yes
Event::dispatch(new Event()) yes
Method call with inline class $jobDispatcher->dispatch(new Job()) yes
$jobDispatcher->dispatchNow(new Job()) yes
$jobDispatcher->dispatchSync(new Job()) yes
$jobDispatcher->dispatchToQueue(new Job()) yes
$jobDispatcher->dispatchAfterResponse(new Job()) yes
$eventDispatcher->dispatch(new Event()) yes
Static call with variable Bus::dispatch($job) yes (WIP)
Bus::dispatchNow($job) yes (WIP)
Bus::dispatchSync($job) yes (WIP)
Bus::dispatchToQueue($job) yes (WIP)
Bus::dispatchAfterResponse($job) yes (WIP)
Event::dispatch($event) yes (WIP)
Method call with variable $jobDispatcher->dispatch($job) yes (WIP)
$jobDispatcher->dispatchNow($job) yes (WIP)
$jobDispatcher->dispatchSync($job) yes (WIP)
$jobDispatcher->dispatchToQueue($job) yes (WIP)
$jobDispatcher->dispatchAfterResponse($job) yes (WIP)
$eventDispatcher->dispatch($event) yes (WIP)

Manual discovery

To make sure your listeners and jobs are linked together, add the following snippets wherever applicable:



class ListenerOrJob {
    public function handle(): void
    {
        ...
        Event::dispatch(Event1::class);
        Event::dispatchNow(Event1::class);
        Bus::dispatch(Job1::class);
        Bus::dispatchNow(Job2::class);
        ...
    }

    public static function dispatchesEvents(): array
    {
        return [
            Event1::class,
            Event2::class,
        ];
    }
    
    public static function dispatchesJobs(): array
    {
        return [
            Job1::class,
            Job2::class,
        ];
    }
}

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

GitHub

https://github.com/JonasPardon/laravel-event-visualizer
You might also like...

Laravel Segment is an opinionated, approach to integrating Segment into your Laravel application.

Laravel Segment Laravel Segment is an opinionated, approach to integrating Segment into your Laravel application. Installation You can install the pac

May 16, 2022

Laravel Sanctum support for Laravel Lighthouse

Laravel Sanctum support for Laravel Lighthouse

Lighthouse Sanctum Add Laravel Sanctum support to Lighthouse Requirements Installation Usage Login Logout Register Email Verification Forgot Password

May 27, 2022

Bring Laravel 8's cursor pagination to Laravel 6, 7

Laravel Cursor Paginate for laravel 6,7 Installation You can install the package via composer: composer require vanthao03596/laravel-cursor-paginate U

Jan 13, 2022

A package that uses blade templates to control how markdown is converted to HTML inside Laravel, as well as providing support for markdown files to Laravel views.

A package that uses blade templates to control how markdown is converted to HTML inside Laravel, as well as providing support for markdown files to Laravel views.

Install Install via composer. $ composer require olliecodes/laravel-etched-blade Once installed you'll want to publish the config. $ php artisan vendo

Jul 5, 2021

A light weight laravel package that facilitates dealing with arabic concepts using a set of classes and methods to make laravel speaks arabic

A light weight laravel package that facilitates dealing with arabic concepts using a set of classes and methods to make laravel speaks arabic! concepts like , Hijri Dates & Arabic strings and so on ..

May 15, 2022

Jetstrap is a lightweight laravel 8 package that focuses on the VIEW side of Jetstream / Breeze package installed in your Laravel application

A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.

May 13, 2022

Laravel Jetstream is a beautifully designed application scaffolding for Laravel.

Laravel Jetstream is a beautifully designed application scaffolding for Laravel. Jetstream provides the perfect starting point for your next Laravel application and includes login, registration, email verification, two-factor authentication, session management, API support via Laravel Sanctum, and optional team management.

May 18, 2022

Laravel Larex lets you translate your whole Laravel application from a single CSV file.

Laravel Larex lets you translate your whole Laravel application from a single CSV file.

Laravel Larex Translate Laravel Apps from a CSV File Laravel Larex lets you translate your whole Laravel application from a single CSV file. You can i

Apr 2, 2022

A Laravel package that adds a simple image functionality to any Laravel model

A Laravel package that adds a simple image functionality to any Laravel model

Laraimage A Laravel package that adds a simple image functionality to any Laravel model Introduction Laraimage served four use cases when using images

Feb 3, 2022
A simple Laravel event log package for easy model based logging.

Karacraft Logman A simple Model Event Logging Package Usage Installation composer require karacraft/logman Migrate php artisan migrate Publish php a

Dec 28, 2021
Attendize is an open-source ticketing and event management application built using the Laravel PHP framework
Attendize is an open-source ticketing and event management application built using the Laravel PHP framework

Attendize is an open-source ticketing and event management application built using the Laravel PHP framework. Attendize allows event organisers to sel

May 19, 2022
A minimalistic event calendar Tool for Laravel's Nova 4
A minimalistic event calendar Tool for Laravel's Nova 4

Event calendar for Laravel Nova 4 An event calendar that displays Nova resources or other time-related data in your Nova 4 project on a monthly calend

May 5, 2022
PlayZ is an esport event organization and management website allowing the creation of tournaments on the most popular video games of the esport scene.

PlayZ the playz to play Table of Contents Description "What is Playz?" In one sentence PlayZ is "an esport event organization and management website a

Dec 7, 2021
A lightweight domain event pattern implementation for Doctrine2.
A lightweight domain event pattern implementation for Doctrine2.

Knp Rad Domain Event A lightweight domain event pattern implementation for Doctrine2. Official maintainers: @Einenlum Installation With composer : $ c

Aug 23, 2018
An event stream library based on tail

TailEventStream An event stream library based on tail. Note: I don't think you should use this library in a real project, but it's great for education

Feb 19, 2022
List of 77 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova and Laravel Spark.

Laravel Lang In this repository, you can find the lang files for the Laravel Framework 4/5/6/7/8, Laravel Jetstream , Laravel Fortify, Laravel Cashier

May 24, 2022
⚡ Laravel Charts — Build charts using laravel. The laravel adapter for Chartisan.
⚡ Laravel Charts — Build charts using laravel. The laravel adapter for Chartisan.

What is laravel charts? Charts is a Laravel library used to create Charts using Chartisan. Chartisan does already have a PHP adapter. However, this li

May 19, 2022
Laravel Kickstart is a Laravel starter configuration that helps you build Laravel websites faster.

Laravel Kickstart What is Laravel Kickstart? Laravel Kickstart is a Laravel starter configuration that helps you build Laravel websites faster. It com

Jan 8, 2022
Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app
Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

Apr 20, 2022