Configuration in Spark

Building on my last post about dependency injection I thought it would useful to talk configuring Auryn within the context of Spark. Basic Configuration The default configuration of Spark is in web/index.php. If you were to add configuration for PDO the easiest thing to do would be: $injector…

Dependency Injection with Auryn

Dependency Inversion is Hard One of the hardest things to do properly when following SOLID principles is Dependency Inversion. I struggled to understand and implement this concept for years. Often I wondered if it was really worth the trouble to write all of that extra configuration just to simplify testing.…

A simple REST application with Spark

What is Spark? Spark is a PSR-7 micro-framework that implements the Action Domain Responder pattern created by @pmjones. ADR can be summarized as a "clean code" version of MVC, with specific differences that help us achieve SOLID principles. Install Spark This assumes that you already have Composer installed.…