tgrj/tweb_autoloader

minimalistic autoloader

Maintainers

Package info

codeberg.org/tgrj/tweb_autoloader

pkg:composer/tgrj/tweb_autoloader

Statistics

Installs: 20

Dependents: 3

Suggesters: 0

v1.0.0 2026-03-12 22:48 UTC

This package is auto-updated.

Last update: 2026-03-12 22:48:23 UTC


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").