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

ActiveLibrary

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

orderz api-sdk

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

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 1mo 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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

2312d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/675f70830f4e41b0f8dafaa2c082b0f47a0bb58a6fd135a3c30c6b952b2c0f98?d=identicon)[friendz](/maintainers/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.6k509.9M16.9k](/packages/laravel-framework)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[ashallendesign/laravel-exchange-rates

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

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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