php-extended/php-api-fr-gouv-entreprises-qt-object

A library that implements the php-api-fr-gouv-entreprises-qt-interface library


README

A library that implements the php-api-fr-gouv-entreprises-qt-interface library.

coverage build status

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 ^7

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).