Our great sponsors
-
KRouter
A simple routing class for use with @Route and @Method annotations in your vanilla PHP project.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
here you create a reflection object from get_declared_classes which returns ANY class which has been defined. The only reason this works at all is because it looks like you recommend to use include 'FooController.php' before running this code, as classes are defined at the point at which they are needed, and not before. This is unbelievably inefficient. Running PHP from my command line that's already almost 200 classes before you've defined anything. Yes you filter it later, but you've already hit the inefficiency. Reflection isn't free.
Related posts
- New achivements of Mezon PHP Framework
- Piko router, a lightweight and blazing fast router for PHP
- TanStack Router: Setup & Routing in React
- Using Node File Router for file-based routing in Node.js
- PhpSlides now released. Be the first to learn it now!! Alternative of Laravel, but very easy & simple to understand.