New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adlino/locations

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adlino/locations

Iran Provinces, Counties and Cities with a Google Map Location for Laravel.

Source
Packagist
Version
0.0.1
Version published
Total downloads
1.3K
Maintainers
2
Created
Source

Locations

Iran Provinces, Counties and Cities with a Google Map Location for Laravel.

Installation

composer require adlino/locations

Publish

php artisan vendor:publish --force --provider="Adlino\Locations\LocationsServiceProvider"
composer dump-autoload
php artisan locations:init

Usage

// get all provinces
$provinces = Locations::getAllProvinces(); // return approved provinces

// get all counties
$counties = Locations::getAllCounties(); // return approved counties

// get all cities
$cities = Locations::getAllCities(); // return approved cities

// get cities of province
$cities = $province->getCities();

// get counties of province
$counties = $province->getCounties();

// get area code of tehran province
$areaCode = $province->getAreaCode(); // 021

Keywords

laravel

FAQs

Package last updated on 27 May 2018

Related posts