Download the PHP package chencha/conveyor without Composer
On this page you can find all versions of the php package chencha/conveyor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chencha/conveyor
More information about chencha/conveyor
Files in chencha/conveyor
Download chencha/conveyor
More information about chencha/conveyor
Files in chencha/conveyor
Vendor chencha
Package conveyor
Short Description A convey system for commands and requests
License MIT
Package conveyor
Short Description A convey system for commands and requests
License MIT
Please rate this library. Is it a good library?
Informations about the package conveyor
Command and Request Convey System
Basic Usage
Bootstrap Code
$userDbBelt=new UserDbBelt(); //Extends Chencha\Conveyor\Belt
$userDbBelt->registerMachines(SaveInDatabase(), new UpdateElastic());
Machines extend \Chencha\Conveyor\Machine
$mainConveyor=new Chencha\Conveyor();
$mainConveyor->registerBelt($userBelt);
Running Belt
$userDbBelt =$mainConveyor->makeBelt(UserDbBelt::class);
$subject=new User("email"=>"[email protected]","password"=>"good_password");
$$userDbBelt->run($subject);
$subject->getResponse();
$subject->hasError();
$subject->getErrors();
Processes
Processes are belts that are chained together. To stop a process before the next belt. A StopBeltException should be thrown.
$userRegistration= new RegistrationProcess();
$userRegistration->registerBelts($userValidation,$userDbBelt); //Ordering is important
$mainConveyor->registerProcess($userRegistration);
Running a process
$userRegistrationProcess=$mainConveyor->makeProcess(RegistrationProcess::class);
$userRegistrationProcess->run($user);
Exception
StopProcessException //This exceptions will stop the process before next belt is run
All other exceptions bubble up immediately
Deploy status
This system is not ready for production use changes expected coming days
Examples
To check the examples please see
- examples/process_example.php
- examples/belt_example.php
All versions of conveyor with dependencies
PHP Build Version
Package Version
Requires
illuminate/support Version
~5.0
jeremeamia/superclosure Version ~2.0
phpspec/phpspec Version ~2.1@dev
symfony/var-dumper Version ~2.6
jeremeamia/superclosure Version ~2.0
phpspec/phpspec Version ~2.1@dev
symfony/var-dumper Version ~2.6
The package chencha/conveyor contains the following files
Loading the files please wait ....