PHP code example of evoliz / evoliz-php

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

    

evoliz / evoliz-php example snippets




$config = new Evoliz\Client\Config('YOUR_COMPANYID', 'YOUR_PUBLIC_KEY', 'YOUR_SECRET_KEY');
$clientRepository = new ClientRepository($config);

$client = $clientRepository->create(new Client([
    'name' => 'Evoliz',
    'type' => 'Particulier',
    'address' => [
        'postcode' => '83130',
        'town' => 'La Garde',
        'iso2' => 'FR'
    ]
]));

HttpClient::setInstance(['verify' => false], [], true);
bash
composer