Hiboutik REST API
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib/Hiboutik
LICENSE
README.md
composer.json

README.md

PHP library for Hiboutik API

This repository contains the open source PHP library that allows you to access the Hiboutik Platform from your PHP app.

Requirements

Installation

The Hiboutik PHP library can be installed with Composer. Run this command:

composer require hiboutik/hiboutikapi

And in your script

<?php
require 'vendor/autoload.php';

Manual installation

Download the Curl class: php-curl-class with its three files. Include them in your file and then the HiboutikAPI class.

<?php
include "CaseInsensitiveArray.php";
include "Curl.php";
include "MultiCurl.php";

include "HiboutikAPI.php"

Quick Documentation

Initialize Hiboutik API with your API credentials:

// Get your access token here: https://www.hiboutik.com/
$hiboutik = new \Hiboutik\HiboutikAPI(YOUR_HIBOUTIK_ACCOUNT, USER, KEY);

Usage

To list all active products on your account:

$products = $hiboutik->getHiboutik("products");

Returns an array of Products objects.

To create a new product:

$data = [
  "product_model" => "My product",
  "product_barcode" => "",
  "product_brand" => "2",
  "product_supplier" => "2",
  "product_price" => "99.90",
  "product_discount_price" => "89.90",
  "product_category" => 5,
  "product_size_type" => 0,
  "product_stock_management" => 0,
  "product_supplier_reference" => "",
  "product_vat" => 0
];
$hiboutik->postHiboutik("products", $data);

License

Please see the license file for more information.