https://github.com/dansmaculotte/inventoryplanner-php
[WIP] PHP SDK for Inventory Planner API
https://github.com/dansmaculotte/inventoryplanner-php
inventory-planner inventory-planner-api php
Last synced: 7 months ago
JSON representation
[WIP] PHP SDK for Inventory Planner API
- Host: GitHub
- URL: https://github.com/dansmaculotte/inventoryplanner-php
- Owner: dansmaculotte
- License: mit
- Created: 2018-12-12T17:41:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T21:17:02.000Z (over 2 years ago)
- Last Synced: 2025-01-28T11:32:08.571Z (9 months ago)
- Topics: inventory-planner, inventory-planner-api, php
- Language: PHP
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Inventory Planner API PHP SDK
Please refer to Inventory Planner documentation for API specifications.
[Documentation](http://help.inventory-planner.com/using-inventory-planner/inventory-planner-api/inventory-planner-public-api)
## Installation
You can install the package via composer:
``` bash
composer require dansmaculotte/inventoryplanner-php
```
## Usage
### Purchase Order
#### List purchase orders
```php
use DansMaCulotte\InventoryPlanner\PurchaseOrder;
$po = new PurchaseOrder(API_KEY, ACCOUNT_ID);
$results = $po->list();
print_r($results['purchase-orders']);
```
#### Get opened purchase orders
```php
use DansMaCulotte\InventoryPlanner\PurchaseOrder;
$po = new PurchaseOrder(API_KEY, ACCOUNT_ID);
$results = $po->listOpened();
print_r($results['purchase-orders']);
```
#### Get purchase order by Id
```php
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](LICENSE.md) for more information.