Bunkermaster / Nymfony

Nymfony is Not-Symfony, a toy PHP framework
MIT License
21 stars 7 forks source link

Nymfony

Nymfony is not Symfony

Introduction

A simple exercise for my students to the different steps of developing a framework.

View

Views are stored in the View/ directory. Views are rendered from Controllers. The template manager used to generate views is Twig

return $this->render("somepage.html.twig", [
    'key' => 'value'
]);

Helper\Router

Routes are declared in the core/config/routes.json file. See Router info

Helper\ServiceContainer

Services are declared in the core/config/services.json file. See ServiceContainer info

Helper\CLITableBuilder

See CLITableBuilder info

Helper\CLIShellColor

See CLIShellColor info

MIT License

License