PHP code example of schematichq / schematic-php

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

    

schematichq / schematic-php example snippets




chematic\Schematic;

$schematic = new Schematic('YOUR_SECRET_API_KEY');

$companies = $schematic->CompaniesApi->listCompanies();

try {
    $companies = $schematic->CompaniesApi->listCompanies();
    // Process the companies
} catch (\Exception $e) {
    // Handle the exception
    echo 'Error: ' . $e->getMessage();
}
bash
composer