polem / departements
Simple french departments and areas library
Installs: 2 729
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- phpcollection/phpcollection: ~0.4.0
- symfony/intl: >=2.4
This package is not auto-updated.
Last update: 2024-12-21 16:15:29 UTC
README
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();