klein / klein.php

A fast & flexible router
MIT License
2.66k stars 290 forks source link

Feature request #274

Closed nimasdj closed 9 years ago

nimasdj commented 9 years ago

Hello,

  1. Ability add filters just like Laravel router.
  2. Ability to add custom validator in URI. e.g. $klein->respond('GET', '/[:name]{customRegextfor :name}', function ($request, $response) { would you consider this two features for me please?

Thanks,

nimasdj commented 9 years ago

And also ability to have shortcut for methods like $klein->get $klein->post Etc.

Rican7 commented 9 years ago

Hi! Thanks for requesting some features. A few things here:

nimasdj commented 9 years ago

Thanks but for those requests that are already available, I have not seen much info in dics in official site.

Rican7 commented 9 years ago

Yes, the docs could use some work. I'd be happy to take a pull request.