Extending Sculpin with Console Commands
I came across a good blog post by @mavimo that explains how to add console commands to Sculpin.
Sculpin is a static html generator written in PHP. It's built on Symfony components and that makes it easily extendible.