PHPackages                             mozu/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. mozu/api

ActiveLibrary

mozu/api
========

SDK for Mozu Rest APIs

1.21.1(9y ago)41015[1 PRs](https://github.com/Mozu/mozu-php-sdk/pulls)Apache-2.0PHPPHP &gt;=5.5

Since May 6Pushed 6y ago39 watchersCompare

[ Source](https://github.com/Mozu/mozu-php-sdk)[ Packagist](https://packagist.org/packages/mozu/api)[ Docs](https://developer.mozu.com/sdks)[ RSS](/packages/mozu-api/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (5)Versions (21)Used By (0)

Mozu PHP SDK
============

[](#mozu-php-sdk)

PHP SDK for the full v1 Mozu Api

PackageGist:

Usage:
------

[](#usage)

### Authenticating an Application with server provided refresh interval tokens

[](#authenticating-an-application-with-server-provided-refresh-interval-tokens)

```
$appAuthInfo = new AppAuthInfo();
$appAuthInfo->sharedSecret = [sharedSecret];
$appAuthInfo->applicationId = [applicationId];
AppAuthenticator::initialize($appAuthInfo,null);

```

\###Get Tenant Information using Async operation

```
$tenantResource = new TenantResource();
$promise = $tenantResource->getTenantAsync([tenantId]);
$tenant = $promise->wait()->json();

```

\###Get Products

```
$apiContext = new ApiContext($tenant);
#You might need to create an API Context with a specific Mastercatalog or catalogId if you own a multi-catalog tenant
$productResource = new ProductResource($apiContext, DataViewMode::LIVE);
$promise = $productResource->getProductsAsync(0, 200, null, null, null, null, null);
$promise->then(function($mozuResult) {
    printf($mozuResult->json()->pageCount);
    printf($mozuResult->json()->items);

    printf($mozuResult->correlationId);
}, function($apiException) {
    printf("Exception : code - " . $apiException->getCode() . ", message - " . $apiException->getMessage(). ", correlationid - " . $apiException->getCorrelationId() );
});

```

\###Get Orders - Filter by date

```
$orderResource = new OrderResource($apiContext);
$filters = urlencode("submittedDate gt 2013-12-15T12:21:24z");
$promise = $orderResource->getOrdersAsync('0',100, null,$filters, null, null);
$mozuResult = $promise->wait();
$correlation = $mozuResult->correlationId;
$orders = $mozuResult->json()->items;

```

\###Get Products - Pool multiple requests

```
$productResource = new ProductResource($apiContext, DataViewMode::LIVE);
$promises = [
    "product1" => $this->object->getProductAsync("product1"),
    "product2" => $this->object->getProductAsync("product2"),
    "product3" => $this->object->getProductAsync("product3")
];
$results = Promise\unwrap($promises);
printf($results["product1"]->json()->productCode);
printf($results["product2"]->json()->productCode);
printf($results["product3"]->json()->productCode);

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 93.9% 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 ~116 days

Recently: every ~226 days

Total

18

Last Release

2419d ago

PHP version history (2 changes)1.7.0PHP &gt;=5.4

1.17.0PHP &gt;=5.5

### Community

Maintainers

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

---

Top Contributors

[![sanjaymandadi](https://avatars.githubusercontent.com/u/34366?v=4)](https://github.com/sanjaymandadi "sanjaymandadi (62 commits)")[![IslandUsurper](https://avatars.githubusercontent.com/u/17701?v=4)](https://github.com/IslandUsurper "IslandUsurper (2 commits)")[![davidfells](https://avatars.githubusercontent.com/u/1356793?v=4)](https://github.com/davidfells "davidfells (1 commits)")[![jasonbwallis](https://avatars.githubusercontent.com/u/2609225?v=4)](https://github.com/jasonbwallis "jasonbwallis (1 commits)")

---

Tags

sdkcommerceMozu

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k511.3M2.2k](/packages/aws-aws-sdk-php)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)

PHPackages © 2026

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