PHP code example of ericabouaf / pappers

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

    

ericabouaf / pappers example snippets


use Neyric\Pappers\Pappers;
use Neyric\Pappers\Model\Recherche\Recherche;

$pappers = new Pappers($apikey);

$pappers->getCompanyBySiren("Siren number without spaces");

$pappers->getCompanyBySiret("Siret number without spaces");

// Search
$query = new Recherche();
$query->nom_entreprise = "Funbooker";
$results = $pappers->recherche($query);

// Download document
$contents = $pappers->telechargeDocument("documentId");