Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 23 days 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T21:17:02.000Z (over 1 year ago)
- Last Synced: 2024-04-27T07:34:16.903Z (8 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.