lwwcas / laravel-countries
A comprehensive package for managing country data in Laravel applications, including multilingual support, geographic coordinates, and detailed metadata for seamless integration with Laravel.
Installs: 29 001
Dependents: 0
Suggesters: 0
Security: 0
Stars: 67
Watchers: 6
Forks: 23
Open Issues: 2
Requires
- php: ^8.0|^8.1|^8.2
- astrotomic/laravel-translatable: ^11.8
- laravel/framework: ^10.0|^11.0|dev-master
- spatie/laravel-package-tools: ^1.16.0
Requires (Dev)
- doctrine/dbal: ^3.0
- laravel/legacy-factories: ^1.0.4
- mockery/mockery: ^1.4
- nunomaduro/termwind: ^2.1.0
- orchestra/testbench: ^9.4
- pestphp/pest: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
README
Full Documentation
Very short description
Laravel Countries is a package that provides everything you need to kickstart a new project with comprehensive country information, including translations. Optimized for Laravel, it ensures efficient access and management of country data.
The package stores all data directly in your database, allowing you to easily link it to any other table in a simple and familiar way using Laravel’s Eloquent ORM.
🌍 Available Languages
We currently support the following languages:
🚀 Getting Started
Install the package quickly via Composer:
composer require lwwcas/laravel-countries
And get started with Artisan
php artisan w-countries:install
Usage
You can access all the information in the database with a simple query
use Lwwcas\LaravelCountries\Models\Country; Country::whereIso('BR')->first(); Country::whereIsoAlpha3('BRA')->first(); Country::whereSlug('brasil')->first();
Testing With Pest Php
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.