whateverthing.com

Portfolio and Technology Blog
by Kevin Boyd

Adding New Content Types to Sculpin

Recently I've started writing short stories and I've been thinking it would be fun to post them online somewhere. As it turns out, I've got the perfect place: right here! I've added a new area on the site to showcase the stories I've written. Tales from the Whateverthing can be found at the Short Stories link in the sidebar.

This also gives me a chance to demonstrate Sculpin 3's helpful new command for creating custom content types. This post will share some details about the initial command line parameters, as well as what went into customizing the skeleton files that were created.

First, we'll run /vendor/bin/sculpin help content:create to show the help screen for the new command.

Read more of this post »

February 9, 2019

Tags: howto, projects, sculpin, fun, twig, tales


Porting Silex to Slim, Round 2

Several months ago, I blogged about porting Silex web apps to the Slim Framework. I recently went through the same process for a slightly more complex site (NAMR.xyz). This exposed a few areas that were missed in the previous post.

Functional test cases, service providers, and error handlers are among the things that Slim does differently than Silex. Here's my approach for moving things over.

Read more of this post »

January 27, 2019

Tags: coding, dev, development, howto, legacy, php, projects, silex, slim, maintenance


Testing under OS X with Travis CI

In preparation for the release of Sculpin 3 (the upcoming version of the static site generator that runs this blog and many others), I recently spent some time exploring how to tests for PHP projects on non-Linux operating systems using TravisCI.

I realized while working on the upcoming release that I was always running the app under OS X but the CI tests were always running under Linux. This was not ideal for a tool that was intended to run on any OS.

Read more of this post »

December 10, 2018

Tags: dev, development, coding, php, howto, sculpin, testing