I've created a php library of functions which simplifies and abstracts the use of Salesforce's REST API.