承接 pagewerx/uswerx-api-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Require/Install the USWerx API Library for PHP using Composer:

    composer require pagewerx/uswerx-api-php
  2. Set Environment Variables

    Create a .env file (or use an existing one) and include the following necessary environment variables:

    USWX_API_TOKEN=<api-token>
    USWX_HOST=<host>
    
  3. Initialization:

    To begin using the library you will first need to initialize it with the location of the .env file and optionally a LoggerInterface object. This will load your environment variables, set your logger to what was provided, if left null the DefaultLogger will be used. It is recommended to use a better logger than the provided DefaultLogger class. 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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-16