Download the PHP package jonquihote/pluggable without Composer

On this page you can find all versions of the php package jonquihote/pluggable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pluggable

Pluggable

Packagist PHP from Packagist Laravel versions GitHub Workflow Status (main) Total Downloads

Typed, synchronous WordPress-style actions and filters for Laravel. Pluggable lets packages and application modules react to events or contribute values without depending directly on each other. Dispatch uses the PSR-14 standard through Tukio.

Installation

You can install the package via Composer:

Laravel discovers the package service provider and facade automatically. The package has no configuration, migrations, routes, views, or assets to publish.

Laravel Boost

Pluggable ships a Boost skill that teaches supported AI coding agents how to define, register, dispatch, and inspect actions and filters. After installing this package in an application that uses Laravel Boost, run:

Select the pluggable-development skill when prompted. For a new Boost setup, php artisan boost:install --skills discovers the skill during installation.

Actions

Actions announce that something happened. Listeners perform side effects while the action object can carry results back to its caller.

Dispatching is synchronous. Every listener finishes before dispatch() returns:

Filters

Filters pass a typed value through listeners. Each listener can replace that value, making filters useful for transformations and cross-module aggregation.

Registering pluggables and listeners

Create one provider for each logical package or application module. $module is introspection metadata only; it does not affect dispatch.

Register this consumer provider in bootstrap/providers.php:

Listener classes are resolved lazily from Laravel's container, so constructor injection works normally. A class entry invokes __invoke(); an array entry calls the named method.

Override bootModuleEvents() when a module needs to bridge native Laravel events into a pluggable action or filter. Keep framework-owned event subscriptions next to module's pluggable declarations:

For ad-hoc closure listeners or tests, use the manager directly. Higher priority listeners run first:

Call $action->stopPropagation() or $filter->stopPropagation() to prevent later listeners from running.

Introspection

List registered actions, filters, and listener counts:

Inspect one pluggable and its listeners:

Registry data is also available through pluggable()->registry() or the Pluggable facade.

When to use Pluggable

Use actions when one module owns a signal and another owns the reaction. Use filters when several modules contribute to or transform one value. Prefer direct calls or normal Laravel events inside one module. Dispatch is synchronous and in-process; listeners should enqueue jobs when work belongs in the background.

Contributing

Thank you for considering contributing to Pluggable! Please review our contributing guide to get started.

Credits

License

Pluggable is open-sourced software licensed under the MIT license.


All versions of pluggable with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
crell/tukio Version ^2.0
illuminate/support Version ^12.0||^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jonquihote/pluggable contains the following files

Loading the files please wait ...