space-invoices/space-invoices-php

Space invoices PHP sdk

1.0.1 2019-04-04 14:14 UTC

This package is auto-updated.

Last update: 2024-04-19 17:00:51 UTC


README

Join the chat at https://gitter.im/space-invoices/space-invoices-php

The Space Invoices SDK provides an easy way to access Space Invoices API from application written PHP.

Documentation

Detailed documentation about the API can be found at docs.spaceinvoices.com

We also invite you to join our Slack community channel Space Invaders

Installation

Install the package with Composer

composer require space-invoices/space-invoices-php
composer install

Then you can use the Composer's autoload

require_once('vendor/autoload.php');

Usage

TOKEN and ACCOUNT_ID can be obtained by signing up for a developer account on our website: spaceinvoices.com

Spaceinvoices\Spaceinvoices::setAccessToken('TOKEN');

Example usage of SpaceInvoices SDK for creating an Organization.

$accountId = 'ACCOUNT_ID';

$create = Spaceinvoices\Organizations::create($accountId, array(
  "name" => "SpaceX",
  "country" => "USA"
));

var_dump($create);

Visit our website spaceinvoices.com