2017 © Pedro Peláez
 

library schema-php-client

Schema API Client for PHP

image

schemaio/schema-php-client

Schema API Client for PHP

  • Monday, August 1, 2016
  • by ericingram
  • Repository
  • 1 Watchers
  • 9 Stars
  • 903 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

Schema API Client for PHP

Build and scale ecommerce with Schema. Create a free account at https://schema.io, (*1)

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, (*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);

Documentation

See http://schema.io/docs/clients#php for more API docs and usage examples, (*5)

Contributing

Pull requests are welcome, (*6)

License

MIT, (*7)

The Versions

01/08 2016

dev-master

9999999-dev https://schema.io

Schema API Client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-json *

 

api schema rest client commerce node