wp-cli / restful

Unlocking the potential of the WP REST API at the command line

Home Page:https://wp-cli.org/restful/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Standalone PHP REST client

swalkinshaw opened this issue · comments

This only occurred to me today after taking a quick look at the codebase, but I realized there's two things being developed here:

  1. WP REST API client
  2. WP-CLI plugin

Since 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.

This package/plugin could then use the client as a dependency and it would be pretty minimal.

I'd say the main question is around distributing this package. Not sure how WP-CLI packages handle dependencies.

it would be great to have a separate standalone PHP library (and Composer package) that could be used on its own.

💯 Great idea :)

cc @rmccue @rachelbaker @joehoyle