The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

Annotations based router and controllers (V3)

Ergy's Avatar


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

  1. Josh Lockhart closed this discussion on 12 Feb, 2021 07:42 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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