Download the PHP package pagewerx/uswerx-api-php without Composer
On this page you can find all versions of the php package pagewerx/uswerx-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pagewerx/uswerx-api-php
More information about pagewerx/uswerx-api-php
Files in pagewerx/uswerx-api-php
Package uswerx-api-php
Short Description API Library Package for integrating with USWerx
License MIT
Informations about the package uswerx-api-php
USWerx API Integration Library
Table of Contents
- README - (This Page) Project overview and getting started guide
- DraftOrder - Documentation for the DraftOrder class
- Order - Documentation for the Order class
Install and Setup
-
Require/Install the USWerx API Library for PHP using Composer:
-
Set Environment Variables
Create a
.envfile (or use an existing one) and include the following necessary environment variables: -
Initialization:
To begin using the library you will first need to initialize it with the location of the
.envfile and optionally aLoggerInterfaceobject. This will load your environment variables, set your logger to what was provided, if left null theDefaultLoggerwill be used. It is recommended to use a better logger than the providedDefaultLoggerclass. You can create your own using it as a reference or simply create a wrapper for an existing logging library. This process will get an instance of the API Library's Context Singleton.