Skip to content

Releases: Nevraxe/Cervo

Version 4.0.0

23 Nov 23:42

Choose a tag to compare

New in Version 4.0.0

Added

  • Router::addRoute() now support an array of HTTP methods and/or CLI
  • Can now chain multiple Middlewares per routes
  • Added new Router::middleware() to apply a middleware to every routes within it
  • Added support for METHOD_NOT_ALLOWED in the Router
  • Added Router::group() to apply a prefix to every routes within it
  • Added a base for an injection system, will be reworked in 5.0

Updated

  • Updated FastRoute to 1.0

Removed

  • Removed the Response library
  • Removed support for callables in a Route
  • Removed support for Query String requests in the Router

Fixes

  • Adhere better to coding standards
  • Removed the "Method" suffix for controller methods
  • Better tracking of CLI usage in the Router

Version 3.0.6

26 May 17:11

Choose a tag to compare

New in Version 3.0.5

Fixes

  • Fixed a bug in the Router

Version 3.0.5

19 Feb 21:53

Choose a tag to compare

New in Version 3.0.5

Changes

  • The router now parse the query string only if the path was part of it

Version 3.0.4

03 Feb 07:03

Choose a tag to compare

New in Version 3.0.4

Changes

  • Made it so the PHPStorm metedata generator doesn't include Exceptions
  • Deprecated the Response library

Version 3.0.3

03 Feb 06:35

Choose a tag to compare

New in Version 3.0.3

Fixes

  • Fixed the PHPStorm Metadata generation
  • Fixed a bug when Cervo couldn't create the Router cache file

Version 3.0.2

24 Oct 22:31

Choose a tag to compare

New in Version 3.0.2

Changes

  • Now adding the autoloader in initConfig

Version 3.0.1

24 Oct 22:00

Choose a tag to compare

New in Version 3.0.1

Fixes

  • Fixed a bug in the Router with routes without middlewares

Version 3.0.0

24 Oct 19:05

Choose a tag to compare

New in Version 3.0.0

Deprecated

  • Removed the getConfig() method in Core
  • Removed the magic __get() and __set() from the Config library

Changes

  • Now using Nevraxe/Cervo on Packagist
  • Removed explicit return by reference
  • Change the PHP required version to 5.4.7
  • Added nikic/fast-route 0.6.0 in the dependencies
  • Changed the coding style to PSR-2
  • Restructured everything to be compatible with PSR-4
  • Moved the custom Exceptions to their own folder
  • Added usage examples in the README
  • Removed the bootstrap.php file, now required a PSR-4 auto-loader (Or Composer)
  • Lots of code improvements
  • Recoded the Router completely, now using nikic/fast-route at version 0.6.0
  • Now using the short array notation everywhere

Version 2.6.0

26 Sep 07:06

Choose a tag to compare

New in Version 2.6.0

Fixes

  • Small additions in the Response library.
  • Preparing 3.0.0

Version 2.5.3

09 Jun 20:50

Choose a tag to compare

New in Version 2.5.3

Fixes

  • Added a support for callables in $method_path for Routes