sfServiceDefinition – a brief introduction
Fabien has already introduced the symfony service container, and will be shortly releasing a post covering more of it. I was keen to get my hands dirty, so I've dived into the code and got a quick example working.
Continue readingYAML in PHP – fun with sfYaml
In a recent post about Symfony components - Fabien wrote about how the Symfony project (yes, that's right - a capital S now!) will be releasing more and more components. In this post I introduce sfYaml, a YAML parser for PHP - building on my previous blog post about routing.
Continue readingPlaying with symfony routing – without symfony
symfony 1.2 was quite an improvement over 1.0, one of the most important changes was improved decoupling between components. In this article we're going to put this to the test and have some fun with sfRouting.
Continue readingRate Limiting SOAP client in PHP
I've recently had the requirement to rate limit SOAP calls to a remote API, so having done the work I though I'd document it here.
Continue readingUsing the ‘classmap’ with SOAP in PHP
I've recently done a little bit of SOAP work whilst spec'ing out a project for work - and I noticed that the PHP manual page for SOAP a mention of the 'classmap', which isn't documented so well. I thought I'd put an example here to show it's usage.
Continue readingPirate Duck Update
As you should be aware from my previous blog post - Bring Back Pirate Duck - one of my ducks is missing. This morning upon returning I found a small padded envelope addressed to 'Mr Ian P Christian - Duck Master".
Continue readingSelecting a random database row
I recently wanted to select a random row from a database, it seemed like a pretty trivial thing to do - but as often the case, it's not as easy as I first expected it to be!
Continue readingSTOMPing with PHP – intergration with ActiveMQ
In a previous post, "Playing with ActiveMQ using Maven", I showed how to produce and consume simple messages using Java. In this short post I show how to access these messages from PHP using STOMP.
Continue readingPlaying with ActiveMQ using Maven
In this post I demonstrate how to get started with ActiveMQ. This is very much a simple beginners guide, and shows you just enough to get a message traveling between 2 separate applications.
I've separated the example up into 3 sections. The 'producer' section will create test messages on a queue, the 'consumer' will consume them, and the final section, 'mq', will host the ActiveMQ instance. It would be possible to do this in a single application using an embedded broker, however I think it's useful to demonstrate them separately, as potentially the components could be on separate machines.
Continue readingBring Back Pirate Duck
I took 2 days away from work last week, and upon my return I noticed that one of my ducks from my desktop duck collection was missing. Shortly after my discovery, I received an email with a subject line of 'we have your duck'.
Continue reading