A php library for interfacing with the Place API
To install from GitHub using composer:
composer require place/place-api
To manually install place-api
, you can download the source and include with:
<?php
require_once('/path/to/place-php/import.php');
?>
<?php
require_once('vendor/autoload.php');
# set your api key
Place\Place::$api_key = "private_key_6fsMi3GDxXg1XXSluNx1sLEd";
# create an account
$account = Place\Account::create(array(
'email'=>'[email protected]',
'full_name'=>'Joe Schmoe',
'user_type'=>'payer'
));
?>
Read the docs