PHP code example of webweave / floraathome-php-sdk

1. Go to this page and download the library: Download webweave/floraathome-php-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webweave / floraathome-php-sdk example snippets


use Flora\SDK\Connection;
use Flora\SDK\Flora;

$connection = new Connection('your apikey');
$flora = new Flora($connection);

//Get full product list
$flora->Products()->getProducts();

composer