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 »

Autoloading Laravel application code with PSR-4

Posted 2014-01-09
Category PHP
When you use Laravel it's very likely you autoload extra code than just the controllers/models that are autoloaded by default. Some use classmap, others use PSR-0. Well, now you can use PSR-4 too.

Read More »

Composer now supports PSR-4

Posted 2014-01-03
Category PHP
I haven't really posted about PSR-4 here, but if you follow me on Twitter or hang out on Reddit you've probably seen some news about it. PSR-4 was voted in as an "accepted" PSR by the FIG in December. It took a little while to get done and went through a series of painful rewrites but when we have in the end is a document that reflects what this truly is: an improvement on PSR-0. Time to upgrade your packages, but don't release them just yet.

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 »

Benchmarking Codswallop: NodeJS v PHP

Posted 2013-11-12
Category PHP
Sometimes people link me to articles and ask for my opinions. This one was a real doozy.

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 »