百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

laravel-countries

> 编程语言
开源

Laravel Countries 是一个 Laravel 组件,为所有国家提供几乎 ISO 3166_2、3166_3、货币、首都等信息。

847 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Laravel Countries 是一个 Laravel 组件,为所有国家提供几乎 ISO 3166_2、3166_3、货币、首都等信息。

Laravel Countries

A comprehensive Laravel package for handling countries data with all 249 countries, flags, currencies, regions, and more.

Installation

Install via Composer:

composer require webpatser/laravel-countries

Run the installation command to set up the database:

php artisan countries:install

Quick Usage

use Webpatser\Countries\Countries;

$countries = new Countries();
$usa = $countries->getOne('US');
// $usa['name']      => 'United States'
// $usa['full_name'] => 'United States of America'
$allCountries = $countries->getList();
$euroCountries = $countries->getByCurrency('EUR');

Features

  • All 249 countries with complete data
  • ️ Common names (name) and official names (full_name)
  • ️ Flag emojis for every country
  • Currency information and filtering
  • Regional grouping and filtering
  • Search and query capabilities
  • Laravel validation rules
  • Collection and String macros
  • ️ Eloquent model support

Documentation

For complete documentation, examples, and API reference, visit:

https://documentation.downsized.nl/laravel-countries

License

MIT License

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言