All Projects → northwoods → broker

northwoods / broker

Licence: MIT license
Dead simple PSR-15 middleware dispatcher

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to broker

Opencad Php
Open Source Computer Aided Dispatch System for Roleplay Communities.
Stars: ✭ 64 (+146.15%)
Mutual labels:  dispatcher
Kommander Ios
A lightweight, pure-Swift library for manage the task execution in different threads. Through the definition a simple but powerful concept, Kommand.
Stars: ✭ 167 (+542.31%)
Mutual labels:  dispatcher
atomic-state
Atomic State is a state management library for React
Stars: ✭ 15 (-42.31%)
Mutual labels:  dispatcher
Fluxxan
Fluxxan is an Android implementation of the Flux Architecture that combines concepts from both Fluxxor and Redux.
Stars: ✭ 80 (+207.69%)
Mutual labels:  dispatcher
Vim Clap
👏 Modern performant fuzzy picker for Vim and NeoVim
Stars: ✭ 1,802 (+6830.77%)
Mutual labels:  dispatcher
Easyrouter
A component routing framework simple, stable and high-performance, which supports UI, Method Calls, Interceptors, Callbacks and More than these.
Stars: ✭ 172 (+561.54%)
Mutual labels:  dispatcher
Nanohttp
A very micro HTTP framework.
Stars: ✭ 47 (+80.77%)
Mutual labels:  dispatcher
cqrs
A foundational package for Command Query Responsibility Segregation (CQRS) compatible with Laravel.
Stars: ✭ 37 (+42.31%)
Mutual labels:  dispatcher
Noel
A universal, human-centric, replayable javascript event emitter.
Stars: ✭ 158 (+507.69%)
Mutual labels:  dispatcher
burp-aem-scanner
Burp Scanner extension to fingerprint and actively scan instances of the Adobe Experience Manager CMS. It checks the website for common misconfigurations and security holes.
Stars: ✭ 60 (+130.77%)
Mutual labels:  dispatcher
Middleman
Dead simple PSR-15 / PSR-7 middleware dispatcher
Stars: ✭ 87 (+234.62%)
Mutual labels:  dispatcher
Ml Model Ci
MLModelCI is a complete MLOps platform for managing, converting, profiling, and deploying MLaaS (Machine Learning-as-a-Service), bridging the gap between current ML training and serving systems.
Stars: ✭ 122 (+369.23%)
Mutual labels:  dispatcher
wasmcloud-otp
wasmCloud host runtime that leverages Elixir/OTP and Rust to provide simple, secure, distributed application development using the actor model
Stars: ✭ 197 (+657.69%)
Mutual labels:  dispatcher
Vos backend
vangav open source - backend; a backend generator (generates more than 90% of the code needed for big scale backend services)
Stars: ✭ 71 (+173.08%)
Mutual labels:  dispatcher
flux-redux
An application implementing Flux and Redux with few other dependencies
Stars: ✭ 24 (-7.69%)
Mutual labels:  dispatcher
Evangelist
🌟 Library of helpers that are useful for functional programming
Stars: ✭ 58 (+123.08%)
Mutual labels:  dispatcher
General Store
Simple, flexible store implementation for Flux. #hubspot-open-source
Stars: ✭ 171 (+557.69%)
Mutual labels:  dispatcher
lamp-luwak
Service-oriented state management for React
Stars: ✭ 12 (-53.85%)
Mutual labels:  dispatcher
aem-dispatcher-experiments
Experiments to demonstrate the impact of the Dispatcher and it's configuration parameters.
Stars: ✭ 41 (+57.69%)
Mutual labels:  dispatcher
openvpn-shapeshifter
This script will automatically guide you to install and configure your OpenVPN server with Shapeshifter Dispatcher (obfuscation) which will allow you to bypass the DPI blockage on OpenVPN. This setup will offer the users the freedom to choose between regular OpenVPN connection or obfuscated one, they actually can use both! OpenVPN is the VPN pro…
Stars: ✭ 59 (+126.92%)
Mutual labels:  dispatcher

Northwoods Broker

Become a Supporter Latest Stable Version License Build Status Code Coverage Scrutinizer Code Quality

Broker is a dead simple PSR-15 middleware dispatcher. Broker implements both RequestHandlerInterface and MiddlewareInterface for maximum flexibility.

Install

composer require northwoods/broker

Usage

use Acme\Middleware;
use Northwoods\Broker\Broker;

/** @var \Psr\Http\Message\ServerRequestInterface */
$request = /* any server request */;

// Use append() or prepend() to add middleware
$broker = new Broker();
$broker->append(new Middleware\ParseRequest());
$broker->prepend(new Middleware\CheckIp());

/** @var \Psr\Http\Message\ResponseInterface */
$response = $broker->handle($request);

append(...$middleware)

Add one or more middleware to the end of the stack.

prepend(...$middleware)

Add one or more middleware to be beginning of the stack.

handle($request)

Dispatch the middleware stack as a request handler. If the end of the stack is reached and no response has been generated, an OutOfBoundsException will be thrown.

process($request, $handler)

Dispatch the middleware stack as a middleware. If the end of the stack is reached and no response has been generated, the $handler will be called.

Suggested Packages

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].