rudloff/infogreffe-unofficial-api

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

Unofficial API for infogreffe.fr

0.2.0 2015-10-20 23:15 UTC

This package is not auto-updated.

Last update: 2019-09-28 19:13:19 UTC


README

No Maintenance Intended You should use the OpenCorporates API instead.

This PHP class allows you to query data on infogreffe.fr.

How to use it

Class

You can import classes/Infogreffe.php into your PHP code and then use the Infogreffe::search() function to retrieve data.

You can also import this library with Composer:

composer require rudloff/infogreffe-unofficial-api

Example

use InfogreffeUnofficial\Infogreffe;

require_once __DIR__.'/vendor/autoload.php';

var_dump(Infogreffe::search('foo'));

CLI

There is a basic commandline interface that you can use:

php cli.php search "Bygmalion"
php cli.php search 13000545700010

How does it work

It uses an undocumented infogreffe.fr REST API. We are willing to switch to the Infogreffe open data API if and when it includes the same features.