1. Go to this page and download the library: Download ljoboy/drc-data library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ljoboy / drc-data example snippets
use DRCData\Province;
$province = new Province();
//Returning array of object
$all_provinces = $province->getAll();
use DRCData\Province;
$province = new Province();
//It's all returning object
$specific_province = $province->getByName('kinshasa'); //It's case insensitive
$random_province = $province->random();
$province_by_id = $province->getById(5);
use DRCData\Territoire;
$territoire = new Territoire();
$all_territoire = $territoire->getAll();
use DRCData\Ville;
$ville = new Ville();
$villes = $ville->search('shi');
$villes_by_province_id = $ville->byProvinceId(5);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.