Overview for 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

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

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

PSR-7 Permissions

One of the hardest things to do in a web application is to lock certain users to certain functions. Anyone who has tried to DIY their own ACL list or permission structure can attest to it becoming a giant nightmare because Sally in accounting needs this report and that report, but not these other 5, but maybe in the future she might. *LE SIGH*

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

Slim 3 Controllers and Actions

In this article we will take a look at how we can use Slim to create an MVC pattern. Later we will learn how to modify our Controller and create different Actions.

Let's get started.

Written by Glenn Eggleton on Thursday January 28, 2016
Permalink - Chapter: php

Slim 3 Circuit Breakers - Failing gracefully

Recently at work I have run into a few small problems with our infrastructure. Occasionally one of my VPS's timesout when contacting an external mail server. Since this happens maybe two or three times a month, it has been incredably hard to trace.

Written by Glenn Eggleton on Friday February 19, 2016
Permalink - Chapter: php