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

This package is abandoned and no longer maintained. No replacement package was suggested.

A library that implements the php-extended/php-api-fr-gouv-entreprises-gmth-interface library

3.3.6 2022-02-20 13:52 UTC

README

A library that implements the php-extended/php-api-fr-gouv-entreprises-gmth-interface library.

coverage build status

Installation

The installation of this library is made via composer. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		...
		"php-extended/php-api-fr-gouv-entreprises-gmth-object": "^3",
		...
	}

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

This library may be used the following way :


use PhpExtended\EntreprisesGouvFr\GmthApiEndpoint;

/** @var $client \Psr\Http\Client\ClientInterface */

$endpoint = new GmthApiEndpoint($client);

$endpoint->login($username, $password);

$request = new GmthApiDemaneRequest();
$request->setDateCreationDebut(new DateTime());
$request->setDateCreationFin((new DateTime());

foreach($endpoint->searchDemande($request) as $etablissement)
{
	// do something with $etablissement
}

License

MIT (See license file).