ericabouaf / pappers
PHP library to access Pappers.fr API
v1.0.1
2021-02-20 15:11 UTC
Requires
- php: >=7.4
- symfony/http-client: ^4.3||^5.0
- symfony/property-access: ^4.3||^5.0
- symfony/property-info: ^4.3||^5.0
- symfony/serializer: ^4.3||^5.0
Requires (Dev)
- phpstan/phpstan: ^0.12.77
- phpunit/phpunit: ^9.5
README
Module to access the Pappers.fr API
Installation
composer require ericabouaf/pappers
Usage
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");