PHP code example of menarasolutions / geographer-laravel
1. Go to this page and download the library: Download menarasolutions/geographer-laravel 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/ */
menarasolutions / geographer-laravel example snippets
// Add in your config/app.php
'providers' => [
'...',
MenaraSolutions\Geographer\Integrations\LaravelServiceProvider::class,
];
'aliases' => [
'...',
'Geographer' => MenaraSolutions\Geographer\Integrations\LaravelFacade::class,
];
// Start playing with it, all the same calls
Geographer::getCountries()->useShortNames()->toArray();