Overview for php

The Slim Introduction

Getting to know Slim 3.x

For those uninitiated Slim is an unopinionated php micro-framework. Slim lets you do things how you want, and does not force you into structures or patterns.
In this blog post we are going to cover the basics and get you up and running quickly with Slim

Written by Glenn Eggleton on Tuesday January 26, 2016
Permalink - Chapter: php

Slim Unit Testing

Recently I have been fielding a lot of questions about how to mock PSR-7 objects to unit test Slim. A lot of people have found it difficult because of the complexity of the constructors of the Slim HTTP classes. I can't say I blame them, it's something that the core team is working on improving. The HTTP classes are heavily coupled to the Environment object.

Written by Glenn Eggleton on Thursday March 3, 2016
Permalink - Chapter: php

Migrating Slim from 2 to 3

One of the main structural differences in switching from V2 to V3 of the Slim framework is the action method signature. In slim 2 it was just simple, there was nothing except the route parameters passed into the callable, whether it was a Closure or a controller. This provided a super easy API to write complex controllers.

Written by Glenn Eggleton on Friday March 4, 2016
Permalink - Chapter: php