Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Latest commit

 

History

History
44 lines (28 loc) · 1.07 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.07 KB

SPHERE.IO icon

PHP Hello API

Build Status

An example to authenticate your application to SPHERE.IO and get your products, using PHP and the Sphere PHP SDK.

Run SDK example

Add your project key, client id and secret to config.php.

# Install Composer if not installed yet
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the dependencies:

composer install

Then activate the php builtin web server

cd <project_folder>
php -S localhost:8000 -t sdk/

Now navigate to http://localhost:8000 in your browser.

Run RAW example

Add your project key, client id and secret to config.php.

Then activate the php builtin web server

cd <project_folder>
php -S localhost:8000 -t raw/

Now navigate to http://localhost:8000 in your browser.