Whoops Middleware Versions Save

PSR-15 compatible middleware for Whoops, the pretty error handler

2.0.0

3 years ago

Time for some PHP and dependency maintenance.

Summary

  • Add support for PHP 8, drop support for PHP <7.2.
  • Rely on middleware/utils package to pick an available PSR-7 implementation (#12, #13), don't force Laminas on people.

1.2.0

4 years ago

Full changelog:

  • Fixed:
    • Respond with appropriate Content-Type header for all supported response formats (#11)
    • Always use first match when multiple accepted content types are supported

1.1.0

5 years ago

This adds support for using the library together with Diactoros v2.0.

A future release will add support for PSR-17 factories.

1.0.0

6 years ago

As the interfaces changed slightly before the final version of PSR-15 was published, this release brings support for the latest version (see #9).

All other middleware adapters were removed. Please user PSR-15, it's the standard!

Please check out the README for the current interface.

0.5.0

7 years ago

Thanks to @timtegeler, we now support PSR-15 compatible (as of yet, it's still in review) middleware.

Oh, and I also added an official license, this is now licensed under MIT. If this is possible, I hereby want to clarify that I consider all previous versions licensed under MIT as well, so you are not in trouble for using them.

0.4.1

8 years ago

Full changelog:

  • Fixed:
    • Usage of an obsolete response factory in Zend Diactoros (#5).

0.4.0

8 years ago

The first release only had an error middleware for use with Zend Stratigility. This new release also supports other middleware stacks, such as Relay.

Full changelog:

  • Format negotiation: Output is now formatted according to the preferred content type (#4).
  • Fixed:
    • Whoops is not allowed to exit the process anymore, this should be taken care of by the middleware pipeline.

0.3.1

8 years ago

Full changelog:

  • Fixed:
    • The ErrorMiddleware didn't completely fulfill Stratigility's requirements: all four parameters needed to be required. (#3).

0.3.0

8 years ago

We now support Whoops v2.0.0+.

The biggest BC break in the new Whoops version is the increased minimum PHP version.

0.2.0

8 years ago

The first release only had an error middleware for use with Zend Stratigility. This new release also supports other middleware stacks, such as Relay.

Full changelog:

  • Classical Middleware support: The Middleware class now implements the classical three-arguments signature as known from Relay and others.
  • Changed:
    • The class for use with Stratigility has been renamed from Middleware to ErrorMiddleware.