PHPackages                             pagewerx/uswerx-api-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. pagewerx/uswerx-api-php

ActiveLibrary[API Development](/categories/api)

pagewerx/uswerx-api-php
=======================

API Library Package for integrating with USWerx

0.0.5(1y ago)08MITPHP

Since Jan 16Pushed 1y ago2 watchersCompare

[ Source](https://github.com/PageWerx/uswx-api-php)[ Packagist](https://packagist.org/packages/pagewerx/uswerx-api-php)[ RSS](/packages/pagewerx-uswerx-api-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

USWerx API Integration Library
==============================

[](#uswerx-api-integration-library)

Table of Contents
-----------------

[](#table-of-contents)

- [README](README.md) - (This Page) Project overview and getting started guide
- [DraftOrder](docs/DraftOrder.md) - Documentation for the DraftOrder class
- [Order](docs/Order.md) - Documentation for the Order class

---

Install and Setup
-----------------

[](#install-and-setup)

1. **Require/Install the USWerx API Library for PHP using [Composer](https://getcomposer.org)**:

    ```
    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=
    USWX_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');
    ```

---

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance46

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Total

5

Last Release

420d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b891f93aca7384d9cb53facf058e7ed51021a07538720aee9508a19231e07b0b?d=identicon)[justinm](/maintainers/justinm)

---

Top Contributors

[![JustinM151](https://avatars.githubusercontent.com/u/4053931?v=4)](https://github.com/JustinM151 "JustinM151 (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pagewerx-uswerx-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/pagewerx-uswerx-api-php/health.svg)](https://phpackages.com/packages/pagewerx-uswerx-api-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
