PHPackages                             melvin-hamilton-digital/peoplevox-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. melvin-hamilton-digital/peoplevox-api

ActiveLibrary[API Development](/categories/api)

melvin-hamilton-digital/peoplevox-api
=====================================

Peoplevox API integration

0.2(4y ago)112MITPHPPHP &gt;=7.2

Since Aug 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/melvin-hamilton-digital/peoplevox-api)[ Packagist](https://packagist.org/packages/melvin-hamilton-digital/peoplevox-api)[ RSS](/packages/melvin-hamilton-digital-peoplevox-api/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Peoplevox API
=============

[](#peoplevox-api)

[![build](https://camo.githubusercontent.com/8d34763995c7d88974292271336fd65c6e1d0425e00d408cc07c41dd1532bb43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d656c76696e2d68616d696c746f6e2d6469676974616c2f70656f706c65766f782d6170692f504850253230436f6d706f736572)](https://github.com/melvin-hamilton-digital/peoplevox-api/actions/workflows/php.yml)

API documentation
-----------------

[](#api-documentation)

Current features
----------------

[](#current-features)

- data export,
- data import,
- code generation for data import templates.

Example usage
-------------

[](#example-usage)

```
use MHD\Peoplevox\Api\Client;
use MHD\Peoplevox\Api\SessionProvider;
use MHD\Peoplevox\Data\Credentials;
use MHD\Peoplevox\Data\SearchClause;

$wsdl = "https://{your-WMS-Web-Address}/resources/integrationservicev4.asmx?wsdl";
$soapClient = new SoapClient($wsdl);
$credentials = new Credentials('clientId', 'username', 'password');

$sessionProvider = new SessionProvider($soapClient, $credentials);
$peoplevoxClient = new Client($soapClient, $sessionProvider);

# get sales orders
$salesOrders = $peoplevoxClient->getData('Sales orders');
# ...

# get sales orders using search clause
$salesOrders = $peoplevoxClient->getData(
    'Sales orders',
    1,
    10,
    SearchClause::fieldValueIn("Customer", ["John Doe", "Jane Doe"])
);
# ...
```

Save template generation
------------------------

[](#save-template-generation)

In order to simplify save requests this library provides [`SaveTemplateGenerator`](./src/Utils/SaveTemplateGenerator.php) class. Generated classes' properties will match your templates' configuration and should simplify data imports.

```
use MHD\Peoplevox\Utils\SaveTemplateGenerator;
use Nette\PhpGenerator\PsrPrinter;

# generate template
$saveTemplateGenerator = new SaveTemplateGenerator(
    $peoplevoxClient,
    new PsrPrinter()
);
$generatedTemplate = $saveTemplateGenerator->generateTemplate(
    'Sales orders',
    'Generated'
);
file_put_contents(
    './Generated/SaveSalesOrdersTemplate.php',
    $generatedTemplate
);

# use generated template
require_once './Generated/SaveSalesOrdersTemplate.php';

$newOrder = new Generated\SaveSalesOrdersTemplate();
$newOrder->SalesOrderNumber = '1234';
$newOrder->Customer = 'John Doe';
# ...
```

Event subscription
------------------

[](#event-subscription)

When subscribing to events, please keep in mind, that currently it is not possible to retrieve the list of already subscribed events, neither from the Peoplevox web panel nor API. You should consider saving at least the event type and returned subscription ID to keep track of already subscribed events and be able to unsubscribe in the future.

```
use MHD\Peoplevox\Api\Client;

$subscriptionId = $peoplevoxClient->subscribePostEvent(
    Client::EVENT_TYPE_AVAILABILITY_CHANGES,
    'https://example.org/ProcessAvailabilityChanges',
    'item={ItemCode}&amp;available={Available}'
);
# save event type and subscription ID
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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 ~3 days

Total

2

Last Release

1728d ago

PHP version history (2 changes)0.1PHP ^7.2

0.2PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11462938?v=4)[wiatrogon](/maintainers/wiatrogon)[@Wiatrogon](https://github.com/Wiatrogon)

![](https://avatars.githubusercontent.com/u/4592934?v=4)[Jan Myszkier](/maintainers/janmyszkier)[@janmyszkier](https://github.com/janmyszkier)

---

Top Contributors

[![Wiatrogon](https://avatars.githubusercontent.com/u/11462938?v=4)](https://github.com/Wiatrogon "Wiatrogon (5 commits)")[![janmyszkier](https://avatars.githubusercontent.com/u/4592934?v=4)](https://github.com/janmyszkier "janmyszkier (1 commits)")

---

Tags

peoplevox

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/melvin-hamilton-digital-peoplevox-api/health.svg)

```
[![Health](https://phpackages.com/badges/melvin-hamilton-digital-peoplevox-api/health.svg)](https://phpackages.com/packages/melvin-hamilton-digital-peoplevox-api)
```

###  Alternatives

[spawnia/sailor

A typesafe GraphQL client for PHP

92505.0k2](/packages/spawnia-sailor)[litalico-engineering/eg-r2

Easy request validation and route generation from open API specifications (for Laravel)

1112.5k](/packages/litalico-engineering-eg-r2)

PHPackages © 2026

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