this project is for showing how easy a simple mvc implementation is
- 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
- 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
this project has a simple test setup which needs to be extended.
./vendor/bin/phpunit