Skip to content

bambamboole/mini-mvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

76a6028 · Jun 1, 2019

History

21 Commits
Jun 1, 2019
Jun 1, 2019
Apr 24, 2019
Jun 1, 2019
Mar 3, 2018
Apr 24, 2019
Apr 24, 2019
Jun 1, 2019
Jun 1, 2019
Apr 24, 2019
Apr 24, 2019

Repository files navigation

Mini MVC

Build Status

this project is for showing how easy a simple mvc implementation is

This mini mvc has:

  • a composer autoloader
  • a simple router with callbacks or class method linking.
  • a simple active record implementation
  • Twig as template language
  • symfony/dotenv for loading environment variables from a .env file

Installation

  • clone repo
  • composer install
  • cp.env.example .env
  • Fill in database credentials
  • Add a table named posts with columns ID, title, content, created. Id should be primary key. created is a string column

Testing

this project has a simple test setup which needs to be extended.

./vendor/bin/phpunit