php-extended / php-api-fr-gouv-entreprises-qt-object
A library that implements the php-api-fr-gouv-entreprises-qt-interface library
5.0.0
2022-12-18 15:45 UTC
Requires
Requires (Dev)
README
A library that implements the php-api-fr-gouv-entreprises-qt-interface library.
Installation
The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.
- Download
composer.phar
from their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-api-fr-gouv-entreprises-qt-object": "^5"
Basic Usage
This library may be used the following way :
use PhpExtended\EntreprisesGouvFr\QtApiEndpoint;
/** @var $client \Psr\Http\Client\ClientInterface */
$endpoint = new QtApiEndpoint($client);
$endpoint->login($username, $password);
foreach($endpoint->getAllEtablissements() as $etablissement)
{
// do something with $etablissement
}
License
MIT (See license file).