Why I prefer a routing config file to Controller annotations

This page summarizes the projects mentioned and recommended in the original post on /r/PHP

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • AutoRoute

    Automatically maps HTTP requests to PHP action classes.

  • There is another alternative: AutoRoute automatically maps incoming HTTP requests (by verb and path) to PHP action classes in a specified namespace. No more route files or annotations/attributes.

  • Firefly III

    Firefly III: a personal finances manager

  • Take a somewhat random pic in a larger project -- https://github.com/firefly-iii/firefly-iii/blob/main/routes/api.php -- in 30 seconds you can tell how the app is organized, the general approach and style, and basically everything it does....even what it is without looking first. (I don't know if perhaps "debug:router --show-controllers" is commonly dumped somewhere for similar utility without having to actually load things up to mess with it?)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts