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

Abandoned → [friendzapp/orderz-php-sdk](/?search=friendzapp%2Forderz-php-sdk)Library[API Development](/categories/api)

friendz/orderz-php-sdk
======================

orderz api-sdk

0.0.12(6y ago)0339PHPPHP &gt;=7.2.0

Since Jul 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nickfla1/orderz-php-sdk)[ Packagist](https://packagist.org/packages/friendz/orderz-php-sdk)[ RSS](/packages/friendz-orderz-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (2)Versions (11)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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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 ~2 days

Total

10

Last Release

2477d ago

### Community

Maintainers

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

---

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/friendz-orderz-php-sdk/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)

PHPackages © 2026

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