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

This package is auto-updated.

Last update: 2024-03-09 23:18:04 UTC


README

GitHub Release Packagist Downloads minimum PHP version GitHub License

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.