Skip to content
プロジェクト

webpatser/laravel-countries

GitHubで見る

概要

Laravel CountriesはLaravel向けのパッケージで、すべての国についてISO 3166_2、3166_3にほぼ準拠した情報や、通貨、首都などを提供します。

Web・アプリ開発

この数値の測り方

できること

  • 🌍 All 249 countries with complete data
  • 🏷️ Common names (name) and official names (full_name)
  • 🏳️ Flag emojis for every country
  • 💰 Currency information and filtering

計測したスター増加

24時間
0
7日間
0
15日間
-1
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

Laravel Countries

Total Downloads PHP Version Laravel Version License

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

関連プロジェクトを探す

読み込み中…