Skip to content

2j0ye/departements

 
 

Repository files navigation

Departements Build Status SensioLabsInsight Scrutinizer Code Quality

Installation

composer require polem/departements

Usage

use Departements\Datasource\JsonDatasource;
use Departements\Provider;

$file = __DIR__ . '/datas.json';
$datasource = new JsonDatasource($file);
$provider = new Provider($datasource);

// will return all departments
$provider->findAllDepartements();

// will return all departments
$provider->findAllRegions();

About

Simple PHP lib to get french departements

Resources

License

Stars

Watchers

Forks

Packages

No packages published