Build and scale ecommerce with Schema. Create a free account at https://schema.io
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
composer.json
"require": {
"schemaio/schema-php-client" : "dev-master"
},
"repositories": [
{
"type" : "vcs",
"url" : "[email protected]:schemaio/schema-php-client.git"
}
]
Then run composer update
to download and install the library
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
Pull requests are welcome
MIT