Skip to content

schemaio/schema-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schema API Client for PHP

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"  : "[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);

Documentation

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

Contributing

Pull requests are welcome

License

MIT

Releases

No releases published

Packages

No packages published

Languages