Download the PHP package kariricode/processor-pipeline without Composer

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

KaririCode ProcessorPipeline

[![PHP 8.4+](https://img.shields.io/badge/PHP-8.4%2B-777BB4?logo=php&logoColor=white)](https://www.php.net/) [![License: MIT](https://img.shields.io/badge/License-MIT-22c55e.svg)](LICENSE) [![PHPStan Level 9](https://img.shields.io/badge/PHPStan-Level%209-4F46E5)](https://phpstan.org/) [![Tests](https://img.shields.io/badge/Tests-128%20passing-22c55e)](https://kariricode.org) [![ARFA](https://img.shields.io/badge/ARFA-1.3-orange)](https://kariricode.org) [![KaririCode Framework](https://img.shields.io/badge/KaririCode-Framework-orange)](https://kariricode.org) **Immutable, composable processor pipelines for the KaririCode Framework — context-based registry, flexible spec format, structured error collection, PHP 8.4+.** [Installation](#installation) · [Quick Start](#quick-start) · [Features](#features) · [Pipeline](#the-pipeline) · [Architecture](#architecture)

The Problem

Building reusable data-processing chains in PHP typically means either rigid class hierarchies or ad-hoc chains of function calls that are hard to test, configure, and compose:

No registry, no configuration per processor, no error collection, no immutability — just imperative code you copy-paste everywhere.

The Solution


Requirements

Requirement Version
PHP 8.4 or higher
kariricode/contract ^2.8
kariricode/exception ^1.2

Installation


Quick Start

Define processors, register them, build a pipeline, execute:


Features

Immutable Pipelines (ARFA P1)

Pipeline is a readonly class. Adding processors returns a new instance — the original is never modified:

Context-Based Registry

Processors are namespaced by context — no name collisions across domains:

Flexible Specification Format

Build pipelines with simple lists, enable/disable flags, or per-processor configuration:

Configurable Processors

ConfigurableProcessor allows per-build configuration without constructing new instances:

Error Collection via ProcessorHandler

Wrap processors for non-halting error collection — useful in validation scenarios:

PHP 8.4 Attributes

Use #[Process] to declare pipelines declaratively on entity properties:

Structured Exceptions

All exceptions carry a context array for structured logging and tracing:


The Pipeline


Architecture

Source layout

Key design decisions

Decision Rationale ADR
Immutable readonly Pipeline Eliminates shared-state bugs; safe to reuse across requests ADR-001
Context-based registry Prevents name collisions between validator/sanitizer/transformer domains ADR-002
Flexible spec format Same interface for simple lists and richly-configured pipelines ADR-003
ProcessorHandler wrapper Decouples error collection from processor logic; supports halt-or-continue
PipelineExecutionException with stage context Structured observability — which stage, which processor, which cause

Specifications

Spec Covers
SPEC-001 Full pipeline: registry → builder → execution → error collection

Integration with the KaririCode Ecosystem

ProcessorPipeline is the execution engine used internally by other KaririCode components:

Component Role
kariricode/validator Builds validation pipelines from #[Validate] attributes
kariricode/sanitizer Builds sanitization pipelines from #[Sanitize] attributes
kariricode/transformer Builds transformation pipelines from #[Transform] attributes
kariricode/property-inspector Discovers #[Process] attributes and dispatches to pipeline handlers

Any component that needs configurable, composable processing chains can be built on top of this engine.


Project Stats

Metric Value
PHP source files 8
External runtime dependencies 2 (contract · exception)
Test suite 128 tests · 234 assertions
PHPStan level 9
Code coverage 100% classes / methods / lines
PHP version 8.4+
ARFA compliance 1.3
Test suites Unit + Integration

Contributing


License

Walmir Silva


Part of the **[KaririCode Framework](https://kariricode.org)** ecosystem. [kariricode.org](https://kariricode.org) · [GitHub](https://github.com/KaririCode-Framework/kariricode-processor-pipeline) · [Packagist](https://packagist.org/packages/kariricode/processor-pipeline) · [Issues](https://github.com/KaririCode-Framework/kariricode-processor-pipeline/issues)

All versions of processor-pipeline with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
kariricode/contract Version ^2.8
kariricode/exception Version ^1.2
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 kariricode/processor-pipeline contains the following files

Loading the files please wait ...