PHPackages                             conduit/php-livex - 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. conduit/php-livex

ActiveLibrary[API Development](/categories/api)

conduit/php-livex
=================

A PHP API adapter for the Liv-Ex fine wine stock exchange platform

061PHP

Since Jan 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/conduit-innovation/php-livex)[ Packagist](https://packagist.org/packages/conduit/php-livex)[ RSS](/packages/conduit-php-livex/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP-LivEx
=========

[](#php-livex)

A composer-installable set of classes for easily interacting with the various Liv-Ex APIs.

See  for more information.

Important Limitations
---------------------

[](#important-limitations)

- Currently, only [CellarView2](https://e767cb5f8a24933f1193-10d7789927afb962c5fef2cb2f4d8412.ssl.cf3.rackcdn.com/Cellar%20View%202%20API%20Documentation_v4.pdf) functionality is implemented. Full coverage of all APIs are planned.

Feature Roadmap
---------------

[](#feature-roadmap)

1. CellarView2 (Working, ~50% test coverage)
2. LWIN API
3. Logistics API
4. Broking APIs
5. Valuations
6. Direct Market Access / Exchange Integration
7. Trading Alerts
8. My Account APIs

Dependencies
------------

[](#dependencies)

- PHP 5.5.38 or newer
- PHP cURL (Usually included in PHP itself)
- Liv-Ex API Credentials
- [Composer](https://getcomposer.org/)

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

[](#installation)

- Run `composer require conduit\php-livex:dev-master`
- Run `composer install`
- Include the autoloader if you haven't already - `require './vendor/autoload.php';`

Usage
-----

[](#usage)

*Note:* There is HTML API class documentation available in `docs/api`.

### Namespaces and organsiation

[](#namespaces-and-organsiation)

PHP-LivEx is organised into a series of namespaces, closely matching the API categories on the Liv-Ex developer's site. Right now, these are:

`Conduit\LivEx\Logistics``Conduit\LivEx\LWIN`

### Quick Example: Get all CellarView items

[](#quick-example-get-all-cellarview-items)

```
use \Conduit\LivEx\Logistics\CellarView2;
use \Conduit\LivEx\Error;

$cv = new CellarView2('','','DEV');
$r = $cv->getAll();

if(Error::isError($r)) {
  $r->pretty();
  return;
}

var_dump($r); // An array of CellarView items.
```

### Quick Example: Find all items by sub account code

[](#quick-example-find-all-items-by-sub-account-code)

```
use \Conduit\LivEx\Logistics\CellarView2;
use \Conduit\LivEx\Error;

$cv = new CellarView2('','','DEV');
$r = $cv->findBySubAccount('subaccountcode');

if(Error::isError($r)) {
  $r->pretty();
  return;
}

var_dump($r); // An array of CellarView items, attached to "subaccountcode".
```

### Quick Example: Find all items by LWIN

[](#quick-example-find-all-items-by-lwin)

```
use \Conduit\LivEx\Logistics\CellarView2;
use \Conduit\LivEx\Error;

$cv = new CellarView2('','','DEV');
$r = $cv->findByLwin('100598920111200750');

if(Error::isError($r)) {
  $r->pretty();
  return;
}

var_dump($r); // An array of CellarView items of type LWIN 100598920111200750
```

### Quick Example: Find all items by buyer reference

[](#quick-example-find-all-items-by-buyer-reference)

```
use \Conduit\LivEx\Logistics\CellarView2;
use \Conduit\LivEx\Error;

$cv = new CellarView2('','','DEV');
$r = $cv->findByBuyerRef('buyer-ref');

if(Error::isError($r)) {
  $r->pretty();
  return;
}

var_dump($r); // An array of CellarView items linked with buyer reference "buyer-ref"
```

Unit Tests
----------

[](#unit-tests)

PHP-LivEx comes bundled with PHPUnit tests and a test runner. Full coverage is planned.

To run the test suite, make sure you have the require-dev dependencies installed, then run `composer run test`.

API Documentation Generator
---------------------------

[](#api-documentation-generator)

To regenerate the API docs, using PHPDocumentor, run `composer run docs`

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a0812b0b174939446cf5693e0bdf01c7f8ca030baddc064cbe60874e5393239?d=identicon)[tomlawton89](/maintainers/tomlawton89)

---

Top Contributors

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

---

Tags

apicellarviewjsonliv-exphpvinewebservicewine

### Embed Badge

![Health badge](/badges/conduit-php-livex/health.svg)

```
[![Health](https://phpackages.com/badges/conduit-php-livex/health.svg)](https://phpackages.com/packages/conduit-php-livex)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)[emartech/emarsys-magento2-extension

Magento2 integration for the Emarsys Marketing Platform

14273.9k](/packages/emartech-emarsys-magento2-extension)

PHPackages © 2026

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