{"action":"opened","issue":{"url":"https://api.github.com/repos/danielbachhuber/wp-rest-cli/issues/23","repository_url":"https://api.github.com/repos/danielbachhuber/wp-rest-cli","labels_url":"https://api.github.com/repos/danielbachhuber/wp-rest-cli/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/danielbachhuber/wp-rest-cli/issues/23/comments","events_url":"https://api.github.com/repos/danielbachhuber/wp-rest-cli/issues/23/events","html_url":"https://github.com/danielbachhuber/wp-rest-cli/issues/23","id":131449615,"number":23,"title":"Standalone PHP REST client","user":{"login":"swalkinshaw","id":295605,"avatar_url":"https://avatars.githubusercontent.com/u/295605?v=3","gravatar_id":"","url":"https://api.github.com/users/swalkinshaw","html_url":"https://github.com/swalkinshaw","followers_url":"https://api.github.com/users/swalkinshaw/followers","following_url":"https://api.github.com/users/swalkinshaw/following{/other_user}","gists_url":"https://api.github.com/users/swalkinshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/swalkinshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swalkinshaw/subscriptions","organizations_url":"https://api.github.com/users/swalkinshaw/orgs","repos_url":"https://api.github.com/users/swalkinshaw/repos","events_url":"https://api.github.com/users/swalkinshaw/events{/privacy}","received_events_url":"https://api.github.com/users/swalkinshaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-04T19:23:12Z","updated_at":"2016-02-04T19:23:12Z","closed_at":null,"body":"This only occurred to me today after taking a quick look at the codebase, but I realized there's two things being developed here:\r\n\r\n1. WP REST API client\r\n2. WP-CLI plugin\r\n\r\nSince you're doing most of the hard work for 1., it would be great to have a separate standalone PHP library (and Composer package) that could be used on its own.\r\n\r\nThis package/plugin could then use the client as a dependency and it would be pretty minimal.\r\n\r\nI'd say the main question is around distributing this package. Not sure how WP-CLI packages handle dependencies."}}