documentcloud / wordpress-documentcloud

Embed DocumentCloud documents that won't be eaten by the visual editor
https://wordpress.org/plugins/documentcloud/
GNU General Public License v2.0
9 stars 14 forks source link

PHP wrapper for Document Cloud API #11

Closed AbeHandler closed 9 years ago

AbeHandler commented 10 years ago

Hi Everyone,

I work at The Lens in New Orleans. We want to call the Document Cloud API from PHP (we're on Largo), so I'm working on a wrapper for the API, like this one: http://python-documentcloud.readthedocs.org/en/latest/ but for PHP.

My plan is to start with http://phphttpclient.com/ -- then build an adapter on top of it that will form the interface for calls to the Document Cloud API. From there, I'll build some PHP classes that represent objects in DocumentCloud (ex. Document, Project, etc.).

I'd like to start with unit test integration right off the bat. Do you all use a particular testing framework? I'm familiar with PHPUnit so I'd like to use that one -- but if largo/INN uses a different one I will certainly use that.

aschweigert commented 10 years ago

PHPUnit is what WP uses for core so I'd probably stick with that.