umimood / dearapi
PHP Library for dear systems API v2 https://dearinventory.docs.apiary.io
Installs: 4 616
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 11
Open Issues: 0
Requires
- php: ^7.1
- ext-json: *
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2025-03-26 11:24:06 UTC
README
PHP Library for dear systems API v2.
Requirements
- PHP 7.1+
- guzzlehttp/guzzle 6.3+
- ext-json extension
Installation
composer require umimood/dearapi
Otherwise just download the package and add it to the autoloader.
API Documentation
Usage
Create a Dear instance.
$dear = UmiMood\Dear\Dear::create("DEAR-ACCOUNT_ID", "DEAR-APPLICATION-KEY");
Get data from API
$products = $dear->product()->get([]); $accounts = $dear->account()->get([]); $me = $dear->me()->get([]);
Push a new record to the API
$response = $dear->product()->create($params); // see docs for available parameters
Update an existing record
$response = $dear->product()->update($guid, $params); // see docs for available parameters
Delete a record
$response = $dear->product()->delete($guid, []);