Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Trigger Bundle Laravel Package

cleentfaar/trigger-bundle

View on GitHub
Deep Wiki
Context7

TriggerBundle Software License

A Symfony bundle that let's you execute handlers on incoming GET parameters; optionally letting you redirect the client back to an URL with certain parameters stripped.

Build Status Coverage Status Quality Score Latest Version Total Downloads

Documentation

Why not just create my own request listeners, and do what I want from there?

You can of course still do this, and in some specific situations you might need that level of control.

In my projects however, I've noticed that often I just need to execute some business logic and then redirect the user back to the url without that parameter.

Furthermore, the intend of this bundle is to make it easy to have multiple services handle the same request and apply their own logic, instead of making multiple request-listeners with all kinds of different scenarios, each hooking into every request coming through your application! It also helps to prevent repeating code to check whether; the request is using the GET-method, your parameter is available in the query string, etc.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style