PHP code example of homedoctor-es / holded-php-sdk

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

    

homedoctor-es / holded-php-sdk example snippets


$holded = new \HomedoctorEs\Holded\Holded($holdedApiKey); // or Holded::make($holdedApiKey)
$holded->contact()->list();

$holded->contact()->list();
$holded->contact()->get($id);
$holded->contact()->create($data); //$data = []
$holded->contact()->update($data); //$data = []
$holded->contact()->delete($id);

$holded->document()->list();
$holded->document()->get($id);
$holded->document()->create($data); //$data = []
$holded->document()->update($data); //$data = []
$holded->document()->delete($id); //$data = []

$document = $holded->document(Document::PURCHASE_ORDER);

$invoice = $holded->invoice();
bash
$ php composer.phar 
json
...
    "edoctor-es/holded-php-sdk": "*"
    }