Download the PHP package teewurst/pipeline without Composer

On this page you can find all versions of the php package teewurst/pipeline. 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 pipeline

Simple Recursive Pipeline with few dependencies

With this lib, we are able to separate long executions into multiple tasks. A pipeline enables you to better fulfill single responsibility requirements. This results in better maintainability and testability.

How to

public function __invoke(PayloadInterface $payload, PipelineInterface $pipeline): PayloadInterface;

$payloadAfterAllSteps = $pipeline->handle($payload);

Step-by-Step
  1. Create Task(s)
  2. Initialize Pipeline
  3. Fill Payload
  4. Execute Pipe
  5. Evaluate Pipe

Use Pipeline Service

You are able to simple create your pipelines from your DI (PSR-11 Container Service Manager required). It just takes two lines of code (+Config)

The PipelineService class allows you to pass tasks as service hashes.

``

With teewurst/Pipeline you are able to create quite complex tasks in no time:



### Best Practices

- Use `RecursivePipeline` to create "Sub Pipelines" => Dynamic Tasks
- Because of the Structure every task has a "before handle next step" and "after handle next step"
- Interrupt pipeline by throwing an exception or return $payload without handling the next step

### Examples

##### Initialize Pipeline manually

Of course it would be better to use DI instead of `new` all the time

##### Simple Task which does something

Use the pipeline object to pass configuration and handle data between tasks

##### Exception Handling Task

Handle (maybe only certain) exceptions within the pipe

##### Error Bag

Process multiple errors with error bags

All versions of pipeline with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
psr/container Version ^1.0|^2.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 teewurst/pipeline contains the following files

Loading the files please wait ....