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. [API Development](/categories/api)
4. /
5. mozu/api

ActiveLibrary[API Development](/categories/api)

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 3w 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 72% 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

2466d 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.3k543.5M2.6k](/packages/aws-aws-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

346132.9M112](/packages/google-cloud-core)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k11.8M695](/packages/saloonphp-saloon)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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