schemaio/schema-php-client

Schema API Client for PHP

dev-master 2016-08-01 17:37 UTC

This package is not auto-updated.

Last update: 2024-10-12 19:38:51 UTC


README

Build and scale ecommerce with Schema. Create a free account at https://schema.io

Example

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"  : "git@github.com: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);

Documentation

See http://schema.io/docs/clients#php for more API docs and usage examples

Contributing

Pull requests are welcome

License

MIT