This is my attempt to refactor BrewBlogger to much better code, and ultimately add features that I want.
The plan of attack is:
- Move all HTML out of PHP files and into Twig templates
- Move all database access to Doctrine
- Add Silex for routing and dependency injection. Part of that will involve moving pages into their own controllers.
- Normalize the database
- Extract functionality from controller and global functions into objects where it makes sense
As the development progresses, I'll initially be writing Behat tests to confirm I haven't broken anything. Once the project is more stabilized, I'll be writing PHPUnit unit tests and adding CI.