graze logo

snack overflow

by the graze technology teams

graze formatter

Sam Parkinson on December 10, 2015

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 record...

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(Application $app)...

Python as a PHP Developer

Will Pillar on November 24, 2015

The majority of the code I’ve written in my 3 and a half years of professional software development has been PHP. Recently I built my first Python web application for a REST JSON API. I thought I’d share my first experience of Python from the perspective of someone who’s predominantly...

We’re looking forward to Silicon Milkroundabout next weekend. We’ll be there on Sunday 15th November at the Old Truman Brewery in Shoreditch, London. We’re hiring for PHP developers, front end developers and data analysts to work on our custom built logistics and manufacturing systems, our data warehouse, our customer service...

Sometimes with composer you’ll want to point to a repository other than packagist. At graze, a common use of this is to include a private project in an application. Composer facilitates this through the “repositories” directive - "repositories": [ { "type": "vcs", "url": "https://github.com/graze/top-secret-private-package.git" } ] Including top-secret-private-package at tagged...


We were delighted to be able to sponsor last night’s PHP London meetup. There were free drinks and snacks-a-plenty, plus an excellent talk from Sam Burns on ‘Choosing and Using a REST Framework’. REST APIs are increasingly important as the development community moves towards SOA and externalising services, and choosing...

Screenshot of a presentation slide

Remark.js is a web based slideshow with some great features that is comparable to powerpoint or google slides except you can write your presentations entirely in markdown. You can see a demo of remark.js in action here and when checking it out, be sure to press p to see the...

People sitting around a long wooden table working in pairs on laptops

Last week we hosted a codebar event at graze HQ. codebar is a non-profit initiative that facilitates the growth of a diverse tech community by running regular programming workshops. codebar brings together people who want to learn how to code (students) and developers who love coding (coaches), so we thought...

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

Browsers are the most hostile software development environment imaginable. – Douglas Crockford Front end web development can be painful. The pain is mostly caused by the almost infinite number of combinations of software and hardware. We don’t have a locked down ecosystem like you have when building a device specific...