Download the PHP package claz/wishi without Composer
On this page you can find all versions of the php package claz/wishi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package wishi
Locator
If you have ever needed basic information about countries, and their states, then Locator is for you. Locator is a PHP package that works with the Yahoo API. It returns data that you need just by calling one method. There is a Service Provider and a Facade to make it easy to integrate with your Laravel project. It can also be used with other PHP frameworks like Lumen, CakePHP, Zend, etc. Version 1.0.0 only provides information about the following:
- Countries
- States in the country
- Counties in the state
Dependencies
- PHP 5.5+
- Composer 1.4+
- Apache
Getting Started
To use this package with a PHP project, first require the package using composer.
- Note that you must be registered in Yahoo as a developer. Add your Yahoo details to your environment variables.
Using plain PHP
If you are using this project with a plain PHP project, follow the following steps:
- Run
composer dumpautoload
if required. -
Require autoload.php and load the package with its dependencies.
- Instantiate the Locator class and you are good to go.
Using with Laravel
If you are using this project with Laravel, follow the following steps:
-
Open app.config in config folder and,
-
Register the ServiceProvider inside
config.php
-
To use the Facade, simple add it to the same file.
- Import the Facade into your project.
Example
-
To get all the countries.
-
To get all the states in a country.
- To get all the counties in a state.
One very common use is illustrated below in a Laravel project that lists all the state in the Nigeria.
License
This project uses the MIT License feel free to contribute.
All versions of wishi with dependencies
vlucas/phpdotenv Version ~2.2
guzzlehttp/guzzle Version ^6.2
illuminate/support Version ^5.2