1. Go to this page and download the library: Download claz/wishi 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/ */
claz / wishi example snippets
composer
use Wishi\Controllers\Locator;
$locator = new Locator();
Wishi\Providers\LocatorServiceProvider::class,
Locator => Wishi\Facades\Locator::class,
use Locator;
// With normal PHP applications
$countries = $locator->getCountries();
// With the Facade in Laravel applications
$countries = Locator::getCountries();
var_dump($countries); // Collection of countries
// With normal PHP applications
$states = $locator->getStates('Nigeria');
// With the Facade in Laravel applications
$states = Locator::getStates('Nigeria');
var_dump($states); // Collection of states
// With normal PHP applications
$counties = $locator->getCounties('Lagos');
// With the Facade in Laravel applications
$counties = Locator::getCounties('Lagos');
var_dump($counties); // Collection of counties
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.