Download the PHP package jacksunny/eventprocess without Composer
On this page you can find all versions of the php package jacksunny/eventprocess. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jacksunny/eventprocess
More information about jacksunny/eventprocess
Files in jacksunny/eventprocess
Download jacksunny/eventprocess
More information about jacksunny/eventprocess
Files in jacksunny/eventprocess
Vendor jacksunny
Package eventprocess
Short Description simple event process plugin including dispatching on tree for laravel framework
License
Package eventprocess
Short Description simple event process plugin including dispatching on tree for laravel framework
License
Please rate this library. Is it a good library?
Informations about the package eventprocess
eventprocess
simple event process plugin including dispatching on tree for laravel framework
How to install and configurate package
-
install the laravel package composer require "jacksunny/eventprocess":"dev-master"
please check exist line "minimum-stability": "dev" in composer.json if failed
- append new service provider file line in the section providers of file app.config
after appended,it should looks like
'providers' => [ Illuminate\Auth\AuthServiceProvider::class, ...... Jacksunny\EventProcess\EventProcessServiceProvider::class, ],
-
create event class TestEvent
class TestEvent extends BaseEvent implements EventContract { public $context_obj; public function __construct(User $user, Request $request, $entity, $action_name, array $options = null, TreeWalkerContract $tree_walker = null) { parent::__construct($tree_walker, $user, $request, $entity, $action_name, $options); $this->context_obj = $user; }
-
create event listener class TestEventListener
class TestEventListener extends BaseEventListener implements EventListenerContract { public function __construct() { parent::__construct($this); } public function handle(TestEvent $event) { parent::handle($event); //other process code on this event type }
- please notify me if you got any problem or error on it,thank you!
All versions of eventprocess with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
5.4.*
The package jacksunny/eventprocess contains the following files
Loading the files please wait ....