Download the PHP package mutebesi/globalcountries without Composer
On this page you can find all versions of the php package mutebesi/globalcountries. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mutebesi/globalcountries
More information about mutebesi/globalcountries
Files in mutebesi/globalcountries
Package globalcountries
Short Description The best and most complete country information package for the PHP ecosystem.
License MIT
Informations about the package globalcountries
π GlobalCountries (Premium Edition)
GlobalCountries is the most complete, performant, and exhaustive country information package for the PHP ecosystem. It provides everything you need to build world-class global applications, featuring deeply detailed metadata for every country and territory on Earth.
π Table of Contents
- β¨ Features
- π Installation
- π‘ Quick Start
- π₯ Pro Tips & Advanced Usage
- π Searching & Filtering
- πΊοΈ Exhaustive Data Model
- π Localization
- π± Phone Number Intelligence
- ποΈ Laravel Integration
- π Performance
- π¨ Frontend & UI Utilities
- π€ Contributing
β¨ Features
- π Extreme Performance: Data is pre-compiled into optimized PHP arrays for near-instant access.
- π¦ Exhaustive Metadata: Deep details including population, GDP, Gini index, postal formats, and more.
- π¨ Visual Assets: SVG/PNG flags, Emoji support, and Coat of Arms (SVG/PNG).
- π Localization: Multilingual support for country names and native scripts.
- π Fluent API: Powerful searching, filtering, and sorting with a "magical" interface.
- ποΈ Framework Agnostic: Works perfectly in Vanilla PHP, Laravel, Symfony, and WordPress.
- π¨ Laravel Ready: Includes Service Provider, Facades, Validation Rules, and Blade Components.
π Installation
Clone this repository or include it in your project:
If using Composer:
π‘ Quick Start
π₯ Pro Tips & Advanced Usage
Make your code feel like magic with our advanced fluent API:
π Searching & Filtering
πΊοΈ Exhaustive Data Model
Each Country object is an immutable DTO containing premium metadata:
Basic Information
$country->name: Common name (e.g., "Kenya")$country->officialName: Official name (e.g., "Republic of Kenya")$country->nativeNames: Native names keyed by language code.$country->iso2,$country->iso3,$country->isoNumeric: ISO 3166-1 codes.$country->ioc,$country->fifa: Sports organization codes.$country->slug: URL-friendly identifier (e.g., "ke").
Geography
$country->continent,$country->region,$country->subregion.$country->latlng:[latitude, longitude].$country->area: Total area in kmΒ².$country->borders: Neighboring country ISO-3 codes.$country->isLandlocked: Boolean status.
Political & Demographics
$country->capital: Capital city name.$country->capitalLatLng: Coordinates of the capital city.$country->population: Total population count.$country->status: Sovereignty status.$country->isUnMember,$country->isIndependent.
Communication & Visuals
$country->callingCode: International prefix (e.g., "+254").$country->flagEmoji,$country->flagSvg,$country->flagPng.$country->coatOfArms: Coat of Arms (SVG/PNG URL).
Economics & Technical
$country->currencyCode(),$country->currencySymbol(),$country->currencyName().$country->gdp: Gross Domestic Product.$country->gini: Gini index of income inequality.$country->postalCodeFormat(),$country->postalCodeRegex().$country->tlds: Internet domains.$country->drivingSide: "left" or "right".$country->timezones: Supported timezones.$country->startOfWeek: e.g., "monday".
ποΈ Laravel Integration
Validation Rule
Blade Component
π Performance
| Operation | Performance |
|---|---|
| Lookup (ISO) | < 0.001ms |
| Filtering (All) | ~0.02ms |
| Data Size | ~1.5MB (Pre-compiled PHP) |
π¨ Frontend & UI Utilities
π€ Contributing
Please see CONTRIBUTING.md for details.
π License
The MIT License (MIT). Please see License File for more information.