A couple folks here at the UW Seattle campus and I created a SimpleRestClient class to help PHP devs programmatically consume RESTFul X.509 protected web services using PHP cURL. We feel that there is a small hurdle in developing against X.509 certificate protected web service resources so quickly created something to help PHP devs jump over that hurdle in addition to other challenges.
http://github.com/tonychang/PhpRestClient (click on the download button)
You can simply untar the files into the same directory and run the sample app from any webserver with a current version of PHP on it.
Since this code was contributed by developers at multiple UW departments we consider this an UW Community Source project. Yea I just made up the term right now but think it has a nice ring to it. If you want to help contribute to the project just let me know and I can get you added as a GIT contributor.
This is just a first iteration of it and its possible that someone will add additional features like supporting all the HTTP methods (vs just GET and POST) and allowing for Basic/Digest HTTP authentication. Stay tuned for something similar to help .NET devs.
The code is not officially supported but we are happy to answer any questions you may have.
Dan Boren – Computer Science and Engineering
Tony Chang – Office of Information Management
Paul Hanisko – College of Education