星 Hoshi PHP

PHP router & Template loader

Clean URL Route .php file Template.





No strict rules

Hoshi PHP is a PHP router plus template loader. Clean URLs correspond to appropriate .php files stored in separate directory. Very few configuration. Base URL is detected and pasted into templates automatically.


Routes *.php files

router.php loads URI's corresponding .php file by "require_once()" function. By default filename is equal to URI. You can also configure custom routes, where URIs are asigned to different .php file filenames.


Template Loader

Template Loader lets You display html templates that are .php files stored in separate folder. Template loader consists of one function. It automatically replaces [:base_url:] cells with actual base URL. It also automatically loads 'partials' - [:any_prtl:] - that are .php files named 'any_prtl.php'.