Download the PHP package vendasta/sales-orders without Composer
On this page you can find all versions of the php package vendasta/sales-orders. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vendasta/sales-orders
More information about vendasta/sales-orders
Files in vendasta/sales-orders
Package sales-orders
Short Description PHP library for Vendasta's SalesOrders service
License
Informations about the package sales-orders
sales-orders
Description
This is Vendasta's official PHP SDK for API integration of sales-orders.
Requirements
- PHP 5.5 and above or PHP 7.0 and above
- PECL (may be used to install the required PHP extensions)
- Composer
- PHP gmp extension
- OPTIONAL (but recommended): PHP grpc extension
Installation
Install the requirements from above, then:
Authentication
To authenticate your SDK calls, you must provision a service account from within the Vendasta platform.
You must put this file on your server, and set an environment variable to it's path:
Client Initialization
It is highly recommended that you use a singleton client instance. Each client initilization will open it's own connection, therefore using a singleton results in reusing a connection, saving time and resources.
Set an environment variable:
To instantiate the client:
Notice that the environment will be set to DEMO if it is not specified.
Creating and activate an order
Creating and activating an order on a business will purchase the appropriate products, included are helper functions which will allow for G Suite and GoDaddy provisioning.
All versions of sales-orders with dependencies
guzzlehttp/guzzle Version ^6.3
mdanter/ecc Version ^0.5.0
google/protobuf Version ^3.6.0
vendasta/vax Version ^1.2.0