pagewerx/uswerx-api-php
最新稳定版本:0.0.5
Composer 安装命令:
composer require pagewerx/uswerx-api-php
包简介
API Library Package for integrating with USWerx
README 文档
README
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:
composer require pagewerx/uswerx-api-php
-
Set Environment Variables
Create a
.envfile (or use an existing one) and include the following necessary environment variables:USWX_API_TOKEN=<api-token> USWX_HOST=<host> -
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.UswerxApi::init(__DIR__ . '/path-to-your-env-file/.env');
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-16