As part of the work for Filing Reminders, I needed to fetch company data (specifically filing dates) from data.companieshouse.gov.uk. In order to do this, I wrote a small wrapper class which normalises company numbers (e.g. 123456 becomes 00123456, as numbers are fixed at eight characters in length) and makes a request for that company’s details in JSON. It’s not a particularly complicated piece of code, but on the off-chance that it could be of use to someone else, I’ve made it available as ukcd-php under my GitHub account. The licence for the library is MIT, so you shouldn’t have any problems incorporating it in closed source projects, though please feel free to send in bug reports, feature requests or improvements.