A single file API is not a bad idea, but this is a bad implementation.
A single file API is not a bad idea, but this is a bad implementation.
At least types are enforced at runtime. Wait until you learn about TypeScript.
https://github.com/hparadiz/technexus/blob/release/src/Contr...
Strict types make things easier tbh.
Any particular reason other than uhhhh... 4 spaces? This doesn't seem particularly Python-esque to me either.
Altogether it just gave me a clear feeling of this isn't a person who has written a lot of modern PHP but has probably written a lot of python.
The reality is this is a fun toy, and great job to the developer to making it work, but presenting it as anything but that is silly. There is very little benefit to using this over individual functional php files, and certainly more foot-guns.