igorgrabarski/lcbo-php-api

PHP wrapper for LCBO official API

1.0.3 2017-12-23 21:30 UTC

This package is not auto-updated.

Last update: 2024-04-28 02:42:59 UTC


README

PHP wrapper for official LCBO API

Installation:

  • Run in command line: composer require igorgrabarski/lcbo-php-api
  • Get API_KEY from here
  • Add your API_KEY to vendor/igorgrabarski/lcbo-php-api/.env.example file.
  • Rename vendor/igorgrabarski/lcbo-php-api/.env.example file to vendor/igorgrabarski/lcbo-php-api/.env

Usage

  • Add composer's autoloader to your file: require dirname( __DIR__ ) . '/vendor/autoload.php';

  • Create an instance of LCBO class: $lcbo = new igorgrabarski\LCBO();

  • Available methods:

    • $lcbo->getStores($params);
    • $lcbo->getStore($id);
    • $lcbo->getProducts($params);
    • $lcbo->getProduct($id);
    • $lcbo->getInventories($params);
    • $lcbo->getInventory($store_id, $product_id);
    • $lcbo->getDatasets($params);
    • $lcbo->getDataset($id);
  • Get additional information here.