The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Annotations based router and controllers (V3)

Ergy's Avatar

Ergy

01 Oct, 2015 07:16 PM

Hello everyone,

I just developed a module to extend the original router of Slim Framework V3, which adds a controller layer.

Main features :

  • Routes are defined within each of your controllers via annotations and are stored in cache to optimize performance
  • Cache is refreshed automatically when a route is modified
  • Controller functions can be bound to Slim dependency container, to make it easy to access
  • Allow you to define controllers in multiple folders if needed
  • Allow the use of route prefixes via a simple syntax
  • Add hooks before and after running a route, allowing you to interact on the behavior of your application
  • Allow you to cancel route execution if needed

I use it for projects I'm working on to organize my code in a more structured way.
I thought it could interest some of you, so I share the link here.

Feel free to contact me if you have questions, requests for improvements, or just for review :)

Links : Github or Packagist

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac