PHPackages                             friendzapp/orderz-php-sdk - 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. friendzapp/orderz-php-sdk

ActiveLibrary[API Development](/categories/api)

friendzapp/orderz-php-sdk
=========================

orderz api-sdk

0.0.17(6y ago)01.1kPHPPHP &gt;=7.2.0CI failing

Since Jul 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/friendzapp/orderz-php-sdk)[ Packagist](https://packagist.org/packages/friendzapp/orderz-php-sdk)[ RSS](/packages/friendzapp-orderz-php-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (2)Versions (16)Used By (0)

orderz-php-sdk
==============

[](#orderz-php-sdk)

Installation
------------

[](#installation)

`composer require friendzapp/orderz-php-sdk`

Requirements
------------

[](#requirements)

- **PHP** &gt;= `7.2`
- **guzzlehttp/guzzle** = `6.3.3`
- **nesbot/carbon** = `2.19.2`

Basic Usage
-----------

[](#basic-usage)

```
use Friendz\Orderz\Api\Client as OrderzClient;
use Friendz\Orderz\Api\Models\User as UserModel;
use Friendz\Orderz\Api\Requests\CreateOrder as CreateOrderRequest;

function foo(): array
{
  $client = new OrderzClient('api-token');

  return $client->getProducts();
}

function bar(int $productId)
{
  $client = new OrderzClient('api-token');

  $orderRequest = new CreateOrderRequest;
  $orderRequest->externalId = 'your-unique-id';
  $orderRequest->productId = $productId;
  $orderRequest->quantity = 1;
  $orderRequest->user = new UserModel(
    'John',
    'Doe',
    'john.doe@email.com',
    'Sesame Street, 1119'
  );

  $client->createOrder($orderRequest);
}
```

Notes
-----

[](#notes)

Both `createOrder` and `getProducts` APIs can throw either an `ApiException` or a `MalformedResponseException`. The first is a general API exception, the latter describes and error in the response structure.

Boh exceptions have an utility method called `shouldRetry(): bool` (described in their parent class). Failed requests can and should be retried **only** when this method returns true.

#### Example

[](#example)

```
function foo(int $productId)
{
  /**
   * ...
   */

  $shouldRetry = true;

  /* NB: Don't use this code in production! */

  do {
    try {
      $response = $client->createOrder($orderRequest);

      $shouldRetry = false;
    } catch (ApiException | MalformedResponseException $e) {
      $shouldRetry = $e->shouldRetry();
    }
  } while($shouldRetry);

  /* Use $response somehow */
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.6% 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 ~13 days

Recently: every ~32 days

Total

15

Last Release

2365d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5738513?v=4)[friendz](/maintainers/friendz)[@friendz](https://github.com/friendz)

---

Top Contributors

[![nickfla1](https://avatars.githubusercontent.com/u/1572060?v=4)](https://github.com/nickfla1 "nickfla1 (40 commits)")[![friendzapp](https://avatars.githubusercontent.com/u/35966806?v=4)](https://github.com/friendzapp "friendzapp (1 commits)")

### Embed Badge

![Health badge](/badges/friendzapp-orderz-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/friendzapp-orderz-php-sdk/health.svg)](https://phpackages.com/packages/friendzapp-orderz-php-sdk)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[statamic/cms

The Statamic CMS Core Package

4.8k3.5M923](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[smodav/mpesa

M-Pesa API implementation

16167.1k1](/packages/smodav-mpesa)[imdhemy/google-play-billing

Google Play Billing

491.4M5](/packages/imdhemy-google-play-billing)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

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

PHPackages © 2026

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