tgrj / tweb_autoloader
minimalistic autoloader
v1.0.0
2026-03-12 22:48 UTC
Requires
- php: ^7.0|^8.0
Requires (Dev)
- phpunit/phpunit: ^12.0
README
minimalistic autoloader
About
I wanted to have some really minimalistic PHP framework. I like noodlehaus/dispatch. Still I wanted to have some further stuff on top of it; e.g. with this package some kind of auto loading of the routes.
Probably such frameworks already exist and might even do it better than me. I still wanted to do it to understand all of this ... learn things ... doing something unique to me. Maybe it's something to somebody else. <3
It is a class less framework. All functions are also without a namespace.
First time doing such a thing with composer and packagist etc. on my own. I am just an amateur - so please use with care.
Usage
- tweb_autoload(string $path)
- With this function you can load either an absolute path or a relative path to the project folder and it will load all included PHP files ("require_once").