Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 902 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 902 Bytes

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();