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 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-insee-cog-builder ^7

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