dev-master
9999999-dev https://schema.ioSchema API Client for PHP
MIT
The Requires
- php >=5.3.0
- ext-json *
api schema rest client commerce node
Schema API Client for PHP
Build and scale ecommerce with Schema. Create a free account at https://schema.io, (*1)
require_once("/path/to/schema-php-client/lib/Schema.php"); $client = new Schema\Client('<client-id>', '<client-key>'); $products = $client->get('/categories/shoes/products', array( 'color' => 'blue' )); print_r($products);
or with Composer, (*2)
composer.json, (*3)
"require": { "schemaio/schema-php-client" : "dev-master" }, "repositories": [ { "type" : "vcs", "url" : "git@github.com:schemaio/schema-php-client.git" } ]
Then run composer update
to download and install the library, (*4)
require __DIR__ . '/vendor/autoload.php'; $client = new Schema\Client('<client-id>', '<client-key>'); $products = $client->get('/categories/shoes/products', array( 'color' => 'blue' )); print_r($products);
See http://schema.io/docs/clients#php for more API docs and usage examples, (*5)
Pull requests are welcome, (*6)
MIT, (*7)
Schema API Client for PHP
MIT
api schema rest client commerce node