PHPackages                             mivaecommerce/api-sdk-php - 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. mivaecommerce/api-sdk-php

ActiveLibrary[API Development](/categories/api)

mivaecommerce/api-sdk-php
=========================

Miva Merchant JSON API SDK for PHP

2.7.0(1y ago)519.8k↑13.6%1[3 issues](https://github.com/mivaecommerce/api-sdk-php/issues)proprietaryPHPPHP &gt;=7.4

Since Dec 7Pushed 1y ago8 watchersCompare

[ Source](https://github.com/mivaecommerce/api-sdk-php)[ Packagist](https://packagist.org/packages/mivaecommerce/api-sdk-php)[ Docs](https://www.miva.com)[ RSS](/packages/mivaecommerce-api-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (16)Used By (0)

Miva Merchant API SDK for PHP
=============================

[](#miva-merchant-api-sdk-for-php)

This php library wraps the Miva Merchant JSON API introduced in Miva Merchant 9.12. It allows you to quickly integrate your PHP applications with a Miva Merchant store to fetch, create, and update store data.

For api documentation visit .

Requirements
============

[](#requirements)

- Miva Merchant 10.+
- PHP 7.4+, Suggested 8.x
- Composer

**For Miva Merchant 9.x, use the 1.x release****For older PHP support use any release prior to 2.3.0**

Installation
============

[](#installation)

To install the SDK simply add it to your project with composer:

```
composer require mivaecommerce/api-sdk-php

```

Or manually add it to your `composer.json` file:

```
"require": {
    "mivaecommerce/api-sdk-php" : "2.*@stable"
}

```

Then run `composer update`

Getting Started
===============

[](#getting-started)

For usage see the examples provided in the `examples/` directory.

SSH Private Key Authentication
==============================

[](#ssh-private-key-authentication)

Compatible Private Key Formats
------------------------------

[](#compatible-private-key-formats)

- PKCS#1 PEM
- PKCS#8 PEM

When specifying the key to use within the `SSHClient` or `SSHPrivateKeyAuthenticator`, specify the full path to your private key file.

Converting from an OpenSSH Private Key
--------------------------------------

[](#converting-from-an-openssh-private-key)

If your private key is in OpenSSH format (starts with `-----BEGIN OPENSSH PRIVATE KEY-----`) then you will need to convert it.

Create a copy of your key preserving permissions:

```
cp -p /path/to/private/key/id_rsa /path/to/private/key/id_rsa.pem

```

Convert in place to the proper format:

```
ssh-keygen -p -m PEM -f /path/to/private/key/id_rsa.pem

```

SSH Agent Authentication
========================

[](#ssh-agent-authentication)

Compatible Public Key Formats
-----------------------------

[](#compatible-public-key-formats)

Your public key must be in the OpenSSH Public Key format. The default public key format is usually the correct type if you generated your key using `ssh-keygen`.

See  for format.

A quick way to get the correct format if you have the key associated with your local SSH agent is to run the command `ssh-add -L` and copying the corresponding key.

High Precision Pricing &amp; Weight
===================================

[](#high-precision-pricing--weight)

Miva Merchant 10.11 introduced high precision pricing and weight, allowing many price and weight fields to have up to 7 decimal places. If your store requires this, it is suggested that you install either the decimal or bcmath extension.

Decimal Extension
-----------------

[](#decimal-extension)

This is the recommended extension if you require high precision. When installed, all high precision fields will be created as \\Decimal\\Decimal instances. You can perform arithmetic on these values as you would a native float type.

For more information see

BCMath Extension
----------------

[](#bcmath-extension)

If you prefer to use the bcmath extension then install or enable it in your php configuration and run all your arithmetic through bcmath functions. [](https://github.com/php-decimal/ext-decimal)For more information see

License
=======

[](#license)

This library is licensed under the `Miva SDK License Agreement`.

See the `LICENSE` file for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 95.7% 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 ~163 days

Recently: every ~185 days

Total

15

Last Release

431d ago

Major Versions

1.3.0 → 2.0.02020-10-19

PHP version history (2 changes)1.0.0PHP &gt;=5.6

2.3.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/09a54e361c93930918875ca5c21cede050f02e7ae882e2712dc656e90e09a179?d=identicon)[mivaecommerce](/maintainers/mivaecommerce)

---

Top Contributors

[![ghassani](https://avatars.githubusercontent.com/u/234341?v=4)](https://github.com/ghassani "ghassani (22 commits)")[![bheyde](https://avatars.githubusercontent.com/u/766816?v=4)](https://github.com/bheyde "bheyde (1 commits)")

---

Tags

api-wrappermivamiva-apisdkapisdkmerchantMiva

### Embed Badge

![Health badge](/badges/mivaecommerce-api-sdk-php/health.svg)

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

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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