esc-company / petdesign-api-client
Client library for Petdesign APIs
Installs: 846
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/esc-company/petdesign-api-client
Requires
- php: ^7.2||^8.0
- guzzlehttp/guzzle: ^6.5
Requires (Dev)
- laravel/pint: ^1.10
- phpunit/phpunit: ^8
- vlucas/phpdotenv: ^4.1
README
About
🔥 The Server API is deprecated, so this repository has been archived. 🔥
This HttpClient used for connecting PETDESIGN API System.
It must required KEY.
Install
composer require esc-company/petdesign-api-client
Usage
Lookup Petdesign Goods and Categories
You can use two method for fetch goods information.
They are find() and get(). find for one good information and get for goods information list.
<?php // Goods $good = (new Good({api_key}))->find(30); $goods = (new Good({api_key}))->show(false)->get(); $goods = (new Good({api_key}))->page(1)->get(); $goods = (new Good({api_key}))->from('2019-09-01')->get(); // Categories $categories = (new Category({api_key}))->get(); $categories = (new Category({api_key}))->byCat()->get(); $catCategory = (new Category({api_key}))->find(Category::catCode);
We suggsest Fasade class for your convinient. As soon...
Test
composer test
License
The Unofficial Petdesign API PhpClient is open-sourced software licensed under the MIT license.