Countries

rinvex/countries image

Countries stats

Downloads
2.8M
Stars
1,576
Open Issues
5
Forks
202

View on GitHub →

Rinvex Countries is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.

Rinvex Country

Rinvex Country is a Laravel package designed to provide comprehensive details about countries worldwide. It includes data for all 250 countries, covering aspects such as names, capitals, demonym, ISO codes, dialling codes, currencies, flags, and emojis, among other attributes.

Key Features

  • Comprehensive Country Details: Access detailed information about each country including official names, ISO codes, geo-coordinates, currencies, and more.
  • Flexible Retrieval: Fetch data for a single country or multiple countries with conditions.
  • Rich Data Attributes: Includes diverse attributes like borders, languages, emoji flags, and currency details.
  • Framework Agnostic: Compatible with any PHP framework, requiring only PHP version ^7.0.
  • Easy Installation: Can be easily installed via Composer.

Installation

Install the package through Composer:

composer require rinvex/countries

Usage

// Retrieve single country details
$egypt = country('eg');
echo $egypt->getName(); // Outputs the name of Egypt
echo $egypt->getEmoji(); // Outputs the emoji flag of Egypt
 
// Retrieve multiple countries or with conditions
$countries = countries(); // Fetch all countries
$oceanianCountries = \Rinvex\Country\CountryLoader::where('geo.continent', ['OC' => 'Oceania']); // Specific condition

Advanced Usage

Access detailed attributes and perform complex queries to fetch customized data sets:

// Advanced details retrieval
echo $egypt->getOfficialName();
echo $egypt->getCurrencies();
 
// Use conditions to filter data
$whereCountries = \Rinvex\Country\CountryLoader::where('geo.continent', ['OC' => 'Oceania']);

Documentation

The package includes detailed documentation on various features such as advanced usage scenarios, data sources, and how to contribute to the package development.

Support and Contributions

Support is provided via multiple channels including Slack, Email, and Twitter. Contributions are welcomed and the contribution guidelines can be found in the project's repository.

For more details, visit the package repository on GitHub.

This Laravel package is handy for developers needing to utilize country-specific data efficiently and supports a broad range of applications from location-based services to international e-commerce solutions.

rinvex photo

value.reach.impact

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Rinvex Countries Related Articles

The Analytics Stack for Laravel: Traffic, Revenue and Attribution in One Place image

The Analytics Stack for Laravel: Traffic, Revenue and Attribution in One Place

Read article
In-Memory Eloquent Models with Truffle image

In-Memory Eloquent Models with Truffle

Read article
RedBerry to Host Georgia's First Laravel Meetup in Tbilisi image

RedBerry to Host Georgia's First Laravel Meetup in Tbilisi

Read article
Manage Global Data in Laravel with the World Package image

Manage Global Data in Laravel with the World Package

Read article
The State of PHP 2024 image

The State of PHP 2024

Read article
LangCountry launches v4 image

LangCountry launches v4

Read article
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Securing Laravel logo

Securing Laravel

The essential security resource for Laravel devs, covering everything you need to keep your apps secure. Sign up to receive weekly security tips and monthly in depth articles, diving deep into security concepts you need to know!

Securing Laravel
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $9500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
The Certification of Competence for Laravel logo

The Certification of Competence for Laravel

A community-driven, proctored assessment across 4 levels designed to validate real-world Laravel knowledge, from Junior to mastery-level Artisan. Official Vue.js, Official Nuxt, Angular, React, JS certifications also available.

The Certification of Competence for Laravel