https://github.com/cable8mm/petdesign-api-php-client
https://github.com/cable8mm/petdesign-api-php-client
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cable8mm/petdesign-api-php-client
- Owner: cable8mm
- License: mit
- Archived: true
- Created: 2018-06-25T09:30:56.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-03-03T06:40:59.000Z (over 2 years ago)
- Last Synced: 2026-01-11T19:35:04.179Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Unofficial Petdesign API PhpClient




## 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
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
```bash
composer test
```
## License
The Unofficial Petdesign API PhpClient is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).