Woohoolabs Harmony Versions Save

A simple and flexible PHP middleware dispatcher based on PSR-7, PSR-11, and PSR-15

6.0.2

5 years ago

FIXED:

  • Instead of a fatal error, an exception is thrown when the FastRouteMiddleware::$fastRoute property is null

6.0.1

5 years ago

CHANGED:

  • Apply the Woohoo Labs. Coding Standard

6.0.0

5 years ago

ADDED:

  • Support for Zend Diactoros 2.0

CHANGED:

  • Run tests on PHP 7.3

REMOVED:

  • DiactorosResponderMiddleware as it has been deprecated since Harmony 5.1.0 (breaking change)

5.1.0

5 years ago

ADDED:

  • HttpHandlerRunnerMiddleware in order to be able to easily use Zend's Http Handler Runner package

CHANGED:

  • Deprecated DiactorosResponderMiddleware because the default HTTP response emitters were deprecated as of Diactoros v1.8.0. You can use HttpHandlerRunnerMiddleware instead.

5.0.0

6 years ago

ADDED:

  • Support for PSR-15 (breaking change)

CHANGED:

  • Adapted the PSR-15 MiddlewareInterface
  • Harmony::__invoke() accepts no arguments
  • Condition callables receive the request (ServerRequestInterface) as a second parameter
  • PHPUnit 7 is minimally required to run tests

REMOVED:

  • HarmonyMiddlewareInterface (breaking change)
  • Harmony::getResponse() (breaking change)
  • Harmony::removeMiddleware() (breaking change)

4.1.1

6 years ago

CHANGED:

  • Routing logic was put into FastRouteMiddleware::routeRequest() template method

FIXED

  • Included Docker image now has PHP 7.1

4.1.0

6 years ago

CHANGED:

  • Increased minimum PHP version requirement to 7.1
  • Added more type declarations

4.0.0

7 years ago

ADDED:

  • Support for PSR-11

CHANGED:

  • Better exception message for DispatcherException
  • Tests namespace became WoohooLabs\Harmony\Tests

REMOVED:

  • Support for Container-Interop

FIXED:

  • DiactorosResponderMiddleware passes the request and response to the next middleware

3.1.0

7 years ago

ADDED:

  • Docker Compose file to run tests more easily

CHANGED:

  • Updated minimum PHP version requirement to 7.0
  • Fixed stylistic errors in the documentation

3.0.1

8 years ago

ADDED:

  • Getters for MethodNotAllowed, MiddlewareNotExists and RouteNotFound exceptions
  • Exception message for MethodNotAllowed and RouteNotFound exceptions