PHP code example of docfalcon / docfalcon-sdk

1. Go to this page and download the library: Download docfalcon/docfalcon-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/ */

    

docfalcon / docfalcon-sdk example snippets


$businessCard = json_decode(file_get_contents('./samples/business_card.json'));

$client = new \GuzzleHttp\Client();
$docfalcon = new \DocFalcon\Client($client,'YOUR_APIKEY');
$response = $docfalcon->generate($businessCard, './business_card.pdf');