Skip to content

Latest commit

 

History

History
35 lines (16 loc) · 1.14 KB

README.md

File metadata and controls

35 lines (16 loc) · 1.14 KB

SeedProject Framework - is a super lite framework i built for my web applications. I looked into CI, Laravel, and a few others, I personally felt like they were too heavy for what i needed. SeedProject is also good for beginner developers that need to get something up quickly and learn more about how MVC frameworks and helps them get setup quickly to build out APIs for their Mobile Applications.


Setting Up

Follow the steps:

  1. Make sure your directory is empty 'rm -rf ' and to delete hidden files 'rm -rf .'
  2. clone the repo: git clone https://github.com/CarlosJa/SeedProject-Naked.git .

Setting Up Routing

Routing is handled in 2 ways. I have default router provided by the Bootstrap.php which is basic /controller/method/param/param.

I also have AltoRouter which allows you to customize your routing.

To use custom routing go to /plugins/Router.php you can add your Router Mapping.

        $router->map('GET|POST','/game/info/[i:id]',  array('c' => 'games', 'a' => 'index'));

To learn more about AltoRouter visit (https://altorouter.com/usage/mapping-routes.html)