The Neverending Muppet Debate of PHP 6 v PHP 7

Posted 2014-07-23
Category PHP
There are a few major, important conversations happening in the PHP internals mailing list as we speak... and then there is the discussion about calling the version that comes after PHP 5 either PHP 6 or PHP 7. Um?

Read More »

Fractal v0.8.0, now with Serializers

Posted 2014-05-29
Category PHP
A new version of Fractal is out, which is a package aimed at making life easier to API developers handling output. At a basic level it acts as a way to typecast an array of data, like array_map() but defined in classes, but at most it can do much more. It can help include other resources inside the response based on user input, so /books?include=author,comments for example will give you exactly what you expect without hardcoding it to always display. The new version provides some serializers, to allow you to change the way that data is represented as output.

Read More »

Heroku and PHP Sitting in a Tree. K.I.S.S.I.N.G

Posted 2014-05-09
Category PHP
Heroku was - as far as I remember - the first (mainstream) PaaS on the market. It was Ruby-only but it was that symbol of modern web development at the time, with the whole "slinging code", "getting shit done", make a Git repo and start shipping bro, hack project/agile-til-it-works mindset.  Since then I've been wishing they would add official PHP support. And... guess what they just did.

Read More »

Made in Production

Posted 2014-03-13
Category PHP
Late last summer I was riding my bike around the mountains of New Jersey. I'm not sure if it was exhaustion, the heat or the fact that I had run out of podcasts to listen to but I had an idea: I should get into the t-shirt sale business.

Read More »

PHP-FIG: Autoloaders, Amendments and The "15th Standard"

Posted 2014-02-13
Category PHP
Recently I've been putting in lots of time for bits around the PHP-FIG, and I wanted to highlight what they were, what they are and what I personally think needs to happen in the near future to make things better.

Read More »

The "Framework" is Dead, Long live the Framework

Posted 2014-01-13
Category PHP
There have been a few posts over the last few months saying that the age of the framework is dead, and that Composer is the true savior, and other similar messages. This is half-true, but lots of people have been using the word "framework" differently over the years and I wanted to really work out a good definition of what a "framework" was in relation to PHP development, and in relation to these discussions. 

Read More »

The Tribal Framework Mindset

The PHP community has made some amazing leaps forward in the last few years, but some folks still (intentionally, or unintentionally) are contributing towards the siloing of the PHP community into framework-specific sub-sections. We used to work that was for a handful of reasons, but with Composer, the FIG and the onset of PSR's we have literally no reason to do this anymore. This article hopes to point out some of the ways in which that can happen, with potential solutions too.

Read More »

PHP API's: Fractal of GOOD Design

Posted 2013-12-12
Category PHP
Recently I started a new blog series called "Build API's That You Wont Hate". It was meant to be a fleshed out series based off of my experiences over the last several years building nontrivial RESTful API's for all sorts of clients. I didn't fully plan the series and just kinda got going with it, and after thinking about things a little more I realised that it was going to be a huge commitment. I figured I should turn it into an ebook, and it's coming along pretty well. 

Read More »

Build API's That You Wont Hate: Part 1 - Useful Database Seeding

Posted 2013-11-08
Category PHP
A little while back I produced an article called Building a Decent API which was mostly a tongue-in-cheek list of things that I'd come across in other APIs that pissed me off, or that I had done myself and used my super-power of hindsight combined with sarcasm to make a set of rules for you to live by when building APIs. Now I'll write more in-depth on various aspects of API development that you need to know if you're going to build something that isn't a total mess.

Read More »

PSR-2 v CodeSniffer PSR-2: A Success Story

Posted 2013-10-15
Category PHP
I've had static analysis tools running in Sublime Text for a long time, but for most of that time I have had CodeSniffer and it's PSR-2 rules disabled. I couldn't for the life of me remember why I had done that, until I turned it back on again. All of a sudden it started complaining about code that I had always considered to be perfectly compliant.

Read More »