Overview for php

Slim 3 Tutorial

Let's take a look at how we can use Slim 3 to write a basic web application. In this tutorial we are going to explore how to write Actions in Slim using PSR-7.

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

Design Patterns 1: Command / Command Bus

This is the first of a few different blog posts related to Design Patterns in PHP. In this post we will explore how to use the Command Bus pattern as well as why you might want to use the pattern. I will briefly touch on a few different implementations and the pro's and con's.

Written by Glenn Eggleton on Monday August 21, 2017
Permalink - Chapter: php

Implementing Basic Cors in Slim

CORS, the bane of every web-dev existence. It's a pain to deal with so let me give you some boilerplate that will make it just work.

Written by Glenn Eggleton on Monday August 21, 2017
Permalink - Chapter: php

Working with TableGateway from Zend/Db

Integrating a peristence package for your project is probably the most common task we all need to figure out. There are a lot of different options to choose from, some light, some heavy, maybe you choose to use none at all and just use PDO. I want to show you one package I have recently fallen in love with. Zend Frameworks DB project and specifically the Table Gateway class.

Written by Glenn Eggleton on Tuesday April 19, 2016
Permalink - Chapter: php

Integrating Doctrine into your project

In this post we will explain how to setup Doctrine 2 in your Slim 3 project. Integrating Doctrine can be a bit of a pain but reading this article should get you around the major hurdles

Written by Glenn Eggleton on Sunday January 22, 2017
Permalink - Chapter: php

Use Autowiring with Slim and be productive!

In this post; I will show you how to use a middleware to create an object inside of PHP-DI for your Action classes to use. One of the most annoying things I have ever found is that Security Code pops-up everywhere. Adding context to a request is hard; but Auto-wiring makes it less hard!

Written by Glenn Eggleton on Saturday August 19, 2017
Permalink - Chapter: php