testing docker images with bats

The Bash Automated Testing System (Bats) is a testing framework for Bash I came across recently, in use by the amazing Apline Linux Docker images. It provides a simple way to verify that the UNIX programs you write behave as expected. A Bats test file is a Bash script with…

Read this article

docker pull graze/composer

We've just released a public Docker image for composer, a popular dependency management tool for PHP. Get it now with docker pull graze/composer, or check it out on the Docker Hub. To share cache and authentication with your host you can use the following configuration: ~$ docker run --rm -it…

Read this article

graze formatter

Yesterday we open-sourced a new library, graze/formatter. It's a pattern we've used extensively in our web application for more than a year now, and it's no coincidence that we started implementing it during our migration to the twig templating engine. Previously we passed our legacy templating engine our active…

Read this article

Silex Routing and Trailing Slashes

Silex treats a route like /profile/1 as a different resource to /profile/1/, nothing wrong with that. However, when using controller providers, root level routes for that controller are mounted with a trailing slash, which leads to potentially undesired behaviour. For example: class ProfileControllerProvider implements ControllerProviderInterface { public function connect(…

Read this article

Codebar – Naming Things

We recently hosted a Codebar event after work at the graze HQ. The lightning talk was focused on the difficult task of Naming Things. @samparkinson_ 's slides from W. London codebar at @grazedotcom are now online: http://t.co/voSyJNnzh4— codebar (@codebar) July 17, 2015…

Read this article