Statistics
25590
8
0
73d
Badges
Tags
http
Dependencies

Middlewares

πŸ’₯ Middleware / Relay / PSR-7 support to Nette Framework.


Build Status Code coverage Licence Downloads this Month Downloads total Latest stable PHPStan

Discussion / Help

Join the chat

Install

composer require contributte/middlewares

Versions

State Version Branch PHP
development ^0.8.0 master >= 7.1
stable ^0.7.0 master >= 7.1
stable ^0.5.0 master >= 5.6

Prolog

Middleware / Relay pattern is widely used for handling any HTTP requests, such as API request, streams, dynamic websites or just any suitable requests.

We have a many solutions and prepared libraries in PHP world.

3rd party middlewares:

Overview

Design

Cycle

Maintainers


Milan Felix Ε ulc

Marek BartoΕ‘

The development is sponsored by Tlapnet. Thank you guys! πŸ‘


Thank you for testing, reporting and contributing.

  • v0.8 v0.8

    Bump! πŸ˜‹

    Diff: v0.7...v0.8

    Changes:

    • Drop BaseMiddleware in favor of IMiddleware (BC break)
    • EnforceHttpsMiddleware
    • TryCatchMiddleware
      • logging support
      • error message replace with generic message
      • improved configuration (BC break)
    • LoggingMiddleware - for logging of each requested url
    • Tracy panel - displays which middlewares were used
    • Removed root support (BC break)
  • v0.7

    Bump! πŸ“¦

    Diff: v0.6...v0.7

    Changes:

    • BasicAuthMiddleware [#17]
    • TryCatchMiddleware [#16] [#14] [#15]
  • v0.6 v0.6

    Bump! πŸ”€

    Diff: v0.5...v0.6

    Changes:

    • PHP 5.6 => PHP 7.1 [#13] [#2]
    • New MethodOverrideMiddleware [#10] [#9]
    • QA: codestyles, better CI
    • Readme: typos [#11]
  • v0.5 v0.5

    Bump! πŸ‡«πŸ‡°

    Diff: v0.4...v0.5

    Changes:

    • [BC] change onStartup, onRequest, onResponse, onError to addListener(type, callback) (more in docs)
  • v0.4 v0.4

    Bump! πŸ€’

    Diff: v0.3...0.4

    Changes:

    • implement security middleware [cb920bd]
    • remove SmartObject [eb17e72]
    • change attributes name (from C-* to contributte.*) [8baa2a5]
    • readme typo [4d94d6c][#7]
    • minor typos
  • v0.3 v0.3

    Bump! πŸ€’

    Diff: v0.2.1...v0.3

    Changes:

    • added own QA ruleset
    • added huge amount of tests
    • drop middleware namespace
    • make nette/http dependency optional
    • remove unused middlewares:
      • ExcludeConditionMiddleware
      • Filter/UrlPathFilter
      • GroupMiddleware
      • RouterMiddleware
    • use SmartObject instead of custom events
    • DI: allow use middlewares as defined services or as string
    • ChainBuilder: added useful methods + factory
    • rename StandaloneMiddlewareExtension -> MiddlewaresExtension
    • rename NetteMiddlewareExtension -> NetteMiddlewaresExtension
    • backport manual dispatching of Application events
  • v0.2.1 v0.2.1

    Bump! ⏩

    Diff: v0.2...v0.2.1

    Changes:

    • fix AutoBasePathMiddleware reducing of the path
  • v0.2 v0.2

    Bumped! ⛳️

    Diff: v0.1.2...v0.2

    Changes:

    • added some validations
    • change *Extension parameters (added middlewares & root key) [BC!]
    • added middlewares
      • AbstractRootMiddleware
      • AutoBasePathMiddleware
      • RouterMiddleware
    • dropped middlewares:
      • ContentNegotiationMiddleware
    • renamed middlewares:
      • ConditionMiddleware -> ExcludeConditionMiddleware
    • added Regex class
    • added factories:
      • PresenterMiddlewareFactory
  • v0.1.2 v0.1.2

    Bumped! ♠️

    Diff: v0.1.1...v0.1.2

    Changes:

    • added a few middlewares implementations
      • ConditionMiddleware
        • UrlPathFilter
      • GroupMiddleware
      • GroupBuilderMiddleware
      • ContentNegotiationMiddleware
        • SuffixNegotiationStrategy
          • JsonNegotiator
    • relax dependencies
  • v0.1.1 v0.1.1

    Bump! πŸ—

    Diff: v0.1...v0.1.1

    Changes:

    • added new methods for PresenterMiddleware
  • v0.1 v0.1

    Bumped! πŸ‘Š

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com