php-extended/php-api-fr-insee-cog-builder

A library that provides the raw data to the php-api-fr-insee-cog-object library


README

A library that provides the raw data to the php-api-fr-insee-cog-object 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-insee-cog-builder": "^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 is made to be used in tandem with php-extended/php-api-fr-insee-cog-object for it to be regenerated.

Both of the libraries should be in the same directory, then just launch the ./download.php script with the following commands :


php download.php pay
php download.php region
php download.php departement
php download.php arrondissement
php download.php canton
php download.php commune
php download.php eventCommune

This will regenerate all the files for all known years.

License

MIT (See license file).