schemaio / schema-php-client
Schema API Client for PHP
Installs: 1 102
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=5.3.0
- ext-json: *
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