nes360org/countries-cities-world
最新稳定版本:1.0
Composer 安装命令:
composer require nes360org/countries-cities-world
包简介
it is the package by connect restcountries wiht API get counties and citys
README 文档
README
This package provides a fast and easy way to obtain a complete list of countries and cities in the world for use in your Laravel 9 application. It connects to an external API (RESTCountries) to gather the necessary information.
Installation
You can install this package using Composer by running the following command:
composer require root/countries-cities-world
Configuration
After installing the package, you must publish its configuration file using the following command:
php artisan vendor:publish --provider="Root\CountriesCitiesWorld\CountriesCitiesWorldServiceProvider"
Usage
You can get a list of countries and cities at any time by calling the following functions:
$countries = CountriesCitW::getCountries(); $cities = CountriesCitW::getCities($countryCode);
Data
To understand the structure of the JSON returned, please consult the API documentation at https://restcountries.com/.
Credits
This package uses the RESTCountries API (https://restcountries.com) to gather information about countries and cities around the world.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-01