web developer. dublin, ireland.

Suggestions For You:


Apigility and constant 403 Forbidden


I was enabling authentication on an Apigility API and no matter what I did I couldn’t authenticate my requests. I would constantly get a 403 forbidden. Turns out the problem was that Apache was stripping the Authorization header so apigility was even aware that a authorised request was even being attempted. The solution was to explicitly Read More


Leveraging Composer to write a more maintainable Object Orientated WordPress plugin


As your wordpress plugin grows it can quickly become a nightmare to maintain. To add a feature you just write callback function and wire it into a hook using wordpress’s global functions. Simples! But because it’s so easy, your plugin soon grows into a monolithic class or script, with unrelated functions and features. WordPress’s core Read More


Note to self


git config --global credential.helper "cache --timeout=3600"


Hostname/Subdomain URLs and routing using ZF2


The Problem Within wripl.com we’re using the our main domain along with a couple of subdomains, i.e api.wripl.com & oauth.wripl.com. The subdomain routing is performed using a Zend\Mvc\Router\Http\Hostname route. I was having 2 issues with this: My other standard routes eg ‘learn-more’ (‘/learn-more’) was available on the sub domains too. E.g. going to ‘api.wripl.com/learn-more’ would still route Read More


I’ve added wripl to my site


Today I’ve added the wripl wordpress plugin to my website. Wripl is a startup I’m working on, wripl centers around the idea of making the web more personal. Wripl gleans your interests from your activity on a web page, and uses this information to recommend other content on that site which you may be interested in. Wripl Read More


Managing forked ZF2 modules with composer


You’re using composer for your dependency management in your shinny new ZF2 project. Then you notice an issue in a thrid-party module you’re using. You fork it and submit a pull request. I’ve done this for a few modules recently, and while waiting for the PR to be accepted I simply cloned my fork into my vendors directory. This becomes a pain Read More


Adding your ZF2 module to packagist.org


I created my first ZF2 (Zend Framework 2) module called BgOauthProvider. I versioned it on GitHub and added it to modules.zendframework.com. All was well. But at the back of my mind it was niggling me that it couldn’t be deployed and managed via composer. I’d had very little experience with composer (other than it was working), Read More