PHPackages                             ghassani/miva-provision - 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. ghassani/miva-provision

ActiveLibrary[API Development](/categories/api)

ghassani/miva-provision
=======================

Various classes, helpers, and wrappers for dealing with Miva Merchant Provisioning API

0.2.x-dev(11y ago)2591Apache 2.0PHPPHP &gt;=5.3.3

Since Dec 26Pushed 10y ago3 watchersCompare

[ Source](https://github.com/ghassani/miva-provision)[ Packagist](https://packagist.org/packages/ghassani/miva-provision)[ RSS](/packages/ghassani-miva-provision/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Miva PHP Provision Tools
========================

[](#miva-php-provision-tools)

These are a set of libraries and wrappers for dealing with Miva Merchant Enterprise Provisioning.

**Right now, only enterprise customers of Miva Merchant have access to use their provisioning API. This may or may not change in the future.**

XML &amp; SOAP Client
---------------------

[](#xml--soap-client)

This wrapper makes it super simple to programatically send your Miva Merchant Provisioning XML File to your Miva Merchant Installation.

**Usage Example:**

```
use Miva\Provisioning\Client;
use Miva\Provisioning\Request;

$client = new Client('https://www.mystorefront.com/mm5/', 'MYTOKENHERE');

$request = new Request();

$request->setContent(' ... );

$response = $client->doRequest($request);

```

Provision XML Builder
---------------------

[](#provision-xml-builder)

This library allows you to programatically construct a valid Miva Merchant Provision XML File.

**Usage Example:**

```
use Miva\Provisioning\Builder\Builder;
use Miva\Provisioning\Builder\Fragment\StoreCreate;
use Miva\Provisioning\Builder\Fragment\ProductAdd;

$storeCode = 'STORE_CODE';

$builder = new Builder($storeCode);

$storeCreate = new StoreCreate();

$builder->addFragmentToDomain($storeCreate);
// alternately:
// $builder->addFragment($storeCreate);

$productAdd = new ProductAdd();

$productAdd->setCode('some_code')
  ->setName('Product Name')
  ->setPrice(20.00)
  ->setCode(10.00)
  ->setWeight(1.00)
  ->setDescription('Product Description')
  ->setTaxable(true)
  ->setActive(true);

$builder->addFragmentToStore($productAdd, $storeCode)
// alternately:
// $builder->addFragment($productAdd, $storeCode);

$xml = $builder->toXml(); //completed XML Document

// you can then send it with the client

$client = new Client('https://www.mystorefront.com/mm5/', 'MYTOKENHERE');

$request = new Request($xml);

$response = $client->doRequest($request);

echo $response->getContent();

```

Installation
------------

[](#installation)

You can pull the source and use your own/existing class loader, or you can simply use composer.

**Via Composer**

```
    "require": {
        "ghassani/miva-provision" : "dev-master"
    }

```

**Via PHAR Package**

Eventually

Misc
----

[](#misc)

**This is still a work in progress**

Enjoy! If you would like to contribute, feel free to send in pull requests.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4154d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8387d7008b06ee858031096d2bf0d8a9432c2a89c82b5ea4be12745bf5765bfb?d=identicon)[ghassani](/maintainers/ghassani)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ghassani-miva-provision/health.svg)

```
[![Health](https://phpackages.com/badges/ghassani-miva-provision/health.svg)](https://phpackages.com/packages/ghassani-miva-provision)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[mjaschen/collmex

Collmex PHP SDK

2080.7k](/packages/mjaschen-collmex)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)[dragon-code/laravel-json-response

Automatically always return a response in JSON format

1118.6k1](/packages/dragon-code-laravel-json-response)

PHPackages © 2026

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