PHPackages                             juo/admin-api - 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. [Admin Panels](/categories/admin)
4. /
5. juo/admin-api

ActiveLibrary[Admin Panels](/categories/admin)

juo/admin-api
=============

v0.1.0(1mo ago)00[1 PRs](https://github.com/juo/admin-api-php/pulls)MITPHPPHP &gt;=8.2CI passing

Since Apr 20Pushed yesterdayCompare

[ Source](https://github.com/juo/admin-api-php)[ Packagist](https://packagist.org/packages/juo/admin-api)[ RSS](/packages/juo-admin-api/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (10)Versions (3)Used By (0)

juo/admin-api
=============

[](#juoadmin-api)

Developer-friendly &amp; type-safe Php SDK specifically catered to leverage *juo/admin-api* API.

Summary
-------

[](#summary)

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

[](#table-of-contents)

- [juo/admin-api](#juoadmin-api)
    - [SDK Installation](#sdk-installation)
    - [SDK Example Usage](#sdk-example-usage)
    - [Authentication](#authentication)
    - [Available Resources and Operations](#available-resources-and-operations)
    - [Pagination](#pagination)
    - [Error Handling](#error-handling)
    - [Server Selection](#server-selection)
- [Development](#development)
    - [Maturity](#maturity)
    - [Contributions](#contributions)

SDK Installation
----------------

[](#sdk-installation)

Tip

To finish publishing your SDK you must [run your first generation action](https://www.speakeasy.com/docs/github-setup#step-by-step-guide).

The SDK relies on [Composer](https://getcomposer.org/) to manage its dependencies.

To install the SDK first add the below to your `composer.json` file:

```
{
    "repositories": [
        {
            "type": "github",
            "url": "https://github.com/juo/admin-api-php.git"
        }
    ],
    "require": {
        "juo/admin-api": "*"
    }
}
```

Then run the following command:

```
composer update
```

SDK Example Usage
-----------------

[](#sdk-example-usage)

### Example

[](#example)

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Juo\AdminAPI;
use Juo\AdminAPI\Models\Operations;

$sdk = AdminAPI\Juo::builder()
    ->setTenant('')
    ->setSecurity(
        ''
    )
    ->build();

$request = new Operations\GetCustomersRequest();

$responses = $sdk->customers->list(
    request: $request
);

foreach ($responses as $response) {
    if ($response->statusCode === 200) {
        // handle response
    }
}
```

Authentication
--------------

[](#authentication)

### Per-Client Security Schemes

[](#per-client-security-schemes)

This SDK supports the following security scheme globally:

NameTypeScheme`adminApiKey`apiKeyAPI keyTo authenticate with the API the `adminApiKey` parameter must be set when initializing the SDK. For example:

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Juo\AdminAPI;
use Juo\AdminAPI\Models\Operations;

$sdk = AdminAPI\Juo::builder()
    ->setSecurity(
        ''
    )
    ->setTenant('')
    ->build();

$request = new Operations\GetCustomersRequest();

$responses = $sdk->customers->list(
    request: $request
);

foreach ($responses as $response) {
    if ($response->statusCode === 200) {
        // handle response
    }
}
```

Available Resources and Operations
----------------------------------

[](#available-resources-and-operations)

Available methods### [Customers](docs/sdks/customers/README.md)

[](#customers)

- [list](docs/sdks/customers/README.md#list) - Lists customers

### [Schedules](docs/sdks/schedules/README.md)

[](#schedules)

- [list](docs/sdks/schedules/README.md#list) - List schedule orders for a customer
- [listAdjustments](docs/sdks/schedules/README.md#listadjustments) - List schedule adjustments for a customer
- [postSchedulesAdjustments](docs/sdks/schedules/README.md#postschedulesadjustments) - Creates a schedule adjustment
- [delete](docs/sdks/schedules/README.md#delete) - Deletes a schedule adjustment

### [Subscriptions](docs/sdks/subscriptions/README.md)

[](#subscriptions)

- [list](docs/sdks/subscriptions/README.md#list) - Lists subscriptions
- [update](docs/sdks/subscriptions/README.md#update) - Updates a subscription
- [pause](docs/sdks/subscriptions/README.md#pause) - Pauses an active subscription
- [resume](docs/sdks/subscriptions/README.md#resume) - Resumes a paused subscription
- [cancel](docs/sdks/subscriptions/README.md#cancel) - Cancels an active/paused subscription
- [reactivate](docs/sdks/subscriptions/README.md#reactivate) - Reactivates a cancelled subscription

#### [Subscriptions.Discounts](docs/sdks/discounts/README.md)

[](#subscriptionsdiscounts)

- [create](docs/sdks/discounts/README.md#create) - Creates a subscription discount
- [delete](docs/sdks/discounts/README.md#delete) - Deletes a subscription discount
- [update](docs/sdks/discounts/README.md#update) - Updates a subscription discount

#### [Subscriptions.Items](docs/sdks/items/README.md)

[](#subscriptionsitems)

- [create](docs/sdks/items/README.md#create) - Creates a subscription item
- [delete](docs/sdks/items/README.md#delete) - Deletes a subscription item
- [update](docs/sdks/items/README.md#update) - Updates a subscription item

Pagination
----------

[](#pagination)

Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the returned object will be a `Generator` instead of an individual response.

Working with generators is as simple as iterating over the responses in a `foreach` loop, and you can see an example below:

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Juo\AdminAPI;
use Juo\AdminAPI\Models\Operations;

$sdk = AdminAPI\Juo::builder()
    ->setTenant('')
    ->setSecurity(
        ''
    )
    ->build();

$request = new Operations\GetCustomersRequest();

$responses = $sdk->customers->list(
    request: $request
);

foreach ($responses as $response) {
    if ($response->statusCode === 200) {
        // handle response
    }
}
```

Error Handling
--------------

[](#error-handling)

Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception.

By default an API error will raise a `Errors\APIException` exception, which has the following properties:

PropertyTypeDescription`$message`*string*The error message`$statusCode`*int*The HTTP status code`$rawResponse`*?\\Psr\\Http\\Message\\ResponseInterface*The raw HTTP response`$body`*string*The response contentWhen custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `list` method throws the following exceptions:

Error TypeStatus CodeContent TypeErrors\\APIException4XX, 5XX\*/\*### Example

[](#example-1)

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Juo\AdminAPI;
use Juo\AdminAPI\Models\Operations;

$sdk = AdminAPI\Juo::builder()
    ->setTenant('')
    ->setSecurity(
        ''
    )
    ->build();

try {
    $request = new Operations\GetCustomersRequest();

    $responses = $sdk->customers->list(
        request: $request
    );

    foreach ($responses as $response) {
        if ($response->statusCode === 200) {
            // handle response
        }
    }
} catch (Errors\APIException $e) {
    // handle default exception
    throw $e;
}
```

Server Selection
----------------

[](#server-selection)

### Override Server URL Per-Client

[](#override-server-url-per-client)

The default server can be overridden globally using the `setServerUrl(string $serverUrl)` builder method when initializing the SDK client instance. For example:

```
declare(strict_types=1);

require 'vendor/autoload.php';

use Juo\AdminAPI;
use Juo\AdminAPI\Models\Operations;

$sdk = AdminAPI\Juo::builder()
    ->setServerURL('https://api.juo.io/admin/v1')
    ->setTenant('')
    ->setSecurity(
        ''
    )
    ->build();

$request = new Operations\GetCustomersRequest();

$responses = $sdk->customers->list(
    request: $request
);

foreach ($responses as $response) {
    if ($response->statusCode === 200) {
        // handle response
    }
}
```

Development
===========

[](#development)

Maturity
--------

[](#maturity)

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Contributions
-------------

[](#contributions)

While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance95

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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

Unknown

Total

1

Last Release

50d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d0a0386b1ccc27c155cb93f957f9df670de7b00ecda973e37c3ccf10fa3dbb4?d=identicon)[paweltatarczuk](/maintainers/paweltatarczuk)

---

Top Contributors

[![paweltatarczuk](https://avatars.githubusercontent.com/u/13351326?v=4)](https://github.com/paweltatarczuk "paweltatarczuk (5 commits)")[![speakeasybot](https://avatars.githubusercontent.com/u/108416695?v=4)](https://github.com/speakeasybot "speakeasybot (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/juo-admin-api/health.svg)

```
[![Health](https://phpackages.com/badges/juo-admin-api/health.svg)](https://phpackages.com/packages/juo-admin-api)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k532.1M19.2k](/packages/laravel-framework)[polar-sh/sdk

4424.5k8](/packages/polar-sh-sdk)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.6M217](/packages/backpack-crud)[clerkinc/backend-php

3377.5k](/packages/clerkinc-backend-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

232.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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