PHP code example of thehocinesaad / laravel-algereography
1. Go to this page and download the library: Download thehocinesaad/laravel-algereography 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/ */
thehocinesaad / laravel-algereography example snippets
$wilayas = wilayas(); // Get all Wilayas in all languages
$ar_wilayas = wilayas('ar'); // Get all Wilayas in arabic
$ar_wilayas = wilayas('fr'); // Get all Wilayas in french
//
$wilaya = wilaya(15); // Get individuel Wilaya in all languages
$ar_wilaya = wilaya(15, 'ar'); // Get individuel Wilaya in arabic
$wilaya = wilaya(15, 'fr'); // Get individuel Wilaya in french
//
$dairas = dairas(); // Get all Dairas in all languages
$ar_dairas = dairas('ar'); // Get all Dairas in arabic
$fr_dairas = dairas('fr'); // Get all Dairas in french
//
$dairas = dairasOf(15); // Get all Dairas of a Wilaya in all languages
$dairas = dairasOf(15, 'ar'); // Get all Dairas of a Wilaya in arabic
$dairas = dairasOf(15, 'fr'); // Get all Dairas of a Wilaya in french
$fr_wilaya = wilaya(15, 'fr'); // $fr_wilaya->name will be 'Tizi Ouzou'
$ar_wilaya = wilaya(15, 'ar'); // $ar_wilaya->name will be 'تيزي وزو'
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.