dansmaculotte / inventoryplanner-php
PHP SDK for Inventory Planner API
Installs: 125
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 2
pkg:composer/dansmaculotte/inventoryplanner-php
Requires
- php: ^7.2
- guzzlehttp/guzzle: ^6.5
- phpoffice/phpspreadsheet: ^1.10
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-10-20 02:57:39 UTC
README
Please refer to Inventory Planner documentation for API specifications.
Installation
You can install the package via composer:
composer require dansmaculotte/inventoryplanner-php
Usage
Purchase Order
List purchase orders
use DansMaCulotte\InventoryPlanner\PurchaseOrder; $po = new PurchaseOrder(API_KEY, ACCOUNT_ID); $results = $po->list(); print_r($results['purchase-orders']);
Get opened purchase orders
use DansMaCulotte\InventoryPlanner\PurchaseOrder; $po = new PurchaseOrder(API_KEY, ACCOUNT_ID); $results = $po->listOpened(); print_r($results['purchase-orders']);
Get purchase order by Id
use DansMaCulotte\InventoryPlanner\PurchaseOrder; $po = new PurchaseOrder(API_KEY, ACCOUNT_ID); $results = $po->getById('aaaaaabbbbbbccccccdddddd'); print_r($results['purchase-order']);
License
The MIT License (MIT). Please see License File for more information.