2017 © Pedro Peláez
 

library middleware

Simply middleware Implementation.

image

fitdev-pro/middleware

Simply middleware Implementation.

  • Monday, March 19, 2018
  • by fitdev-pro
  • Repository
  • 1 Watchers
  • 1 Stars
  • 41 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

FitMiddleware

Simply Middleware Implementation., (*1)

Installation

composer require fitdev-pro/middleware

Usage

Base usage, (*2)

<?php
    $hundler = new MiddlewareHundler(new Resolver(), new Queue());

    $hundler->append(Foo/Bar/SomeClass::class);

    $hundler->append(function ($input, $output, $next){
       $data += 1;

       return $next($data);
    });

    $hundler->append(function ($input, $output, $next){
        $data += 2;

        if($data > 4){
            return $data;
        }

        return $next($data);
    });

    $hundler->append(function ($input, $output, $next){
        $data += 3;

        return $next($data);
    });

    $newData = $hundler->hundle(2);

Contribute

Please feel free to fork and extend existing or add new plugins and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and may adapt the documentation., (*3)

License

The MIT License (MIT). Please see License File for more information., (*4)

The Versions

19/03 2018

dev-master

9999999-dev https://fitdev.pro

Simply middleware Implementation.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Karol Kondraciuk

19/03 2018

1.3.1

1.3.1.0 https://fitdev.pro

Simply middleware Implementation.

  Sources   Download

MIT

The Development Requires

by Karol Kondraciuk

09/03 2018

1.3.0

1.3.0.0 https://fitdev.pro

PHP 7.0 Simply middleware Implementation.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Karol Kondraciuk

08/03 2018

1.2.0

1.2.0.0 https://fitdev.pro

PHP 7.0 Simply middleware Implementation.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Karol Kondraciuk

05/10 2017

1.1.1

1.1.1.0 https://fitdev.pro

PHP 7.0 Simply middleware Implementation.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Karol Kondraciuk

24/07 2017

1.1.0

1.1.0.0 https://fitdev.pro

PHP 7.0 Simply middleware Implementation.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Karol Kondraciuk

19/07 2017

1.0.1

1.0.1.0 https://fitdev.pro

PHP 7.0 Simply middleware Implementation.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Karol Kondraciuk

19/07 2017

1.0.0

1.0.0.0 https://fitdev.pro

PHP 7.0 Simply middleware Implementation.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Karol Kondraciuk