PHP code example of yasseralsamman / saudi-municipal-coding

1. Go to this page and download the library: Download yasseralsamman/saudi-municipal-coding 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/ */

    

yasseralsamman / saudi-municipal-coding example snippets


use SaudiMunicipalCoding\Dataset;

Dataset::findRegion(1)?->name_en;   // 'Riyadh'
Dataset::districtsInCity(17743);    // districts of a city (keyed by district_id)