Flexible implementation of the Ruby on Rails ActiveResource REST client for PHP