ssanko / compari-trusted-shop
Client for compari trusted shop
Installs: 1 466
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/ssanko/compari-trusted-shop
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.5
README
This package provides basic support for Compari or Arukereso trusted shop.
Installation
$ composer require ssanko/compari-trusted-shop
Usage
Usage for Compari trusted shop:
try { $client = (new \Ssanko\Compari\TrustedShop('<apiKey>', new \Ssanko\Compari\Config\CompariConfig)) ->setEmail('somebody@example.com') ->addProduct('Product name 1', 'P123456'); echo $client->createTrustedCode(); } catch (Exception $exception) { die($exception->getMessage()); }
Usage for Arukereso trusted shop:
try { $client = (new \Ssanko\Compari\TrustedShop('<apiKey>', new \Ssanko\Compari\Config\ArukeresoConfig)) ->setEmail('somebody@example.com') ->addProduct('Product name 1', 'P123456'); echo $client->createTrustedCode(); } catch (Exception $exception) { die($exception->getMessage()); }