esc-company / petdesign-api-client
This package is abandoned and no longer maintained.
No replacement package was suggested.
Client library for Petdesign APIs
v0.6.1
2024-03-03 06:40 UTC
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.