Download the PHP package omisai/laravel-countries without Composer
On this page you can find all versions of the php package omisai/laravel-countries. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download omisai/laravel-countries
More information about omisai/laravel-countries
Files in omisai/laravel-countries
Package laravel-countries
Short Description A Laravel adapter for the countries package.
License MIT
Homepage https://github.com/omisai-tech/laravel-countries
Informations about the package laravel-countries
Laravel Countries
Laravel adapter for omisai/php-countries. It registers the Omisai\Countries\Collection in the Laravel service container and exposes it through a facade.
Features
- Registers
Omisai\Countries\Collectionas a singleton in the container - Resolves the collection by class name or the
countriesbinding - Provides a
Countriesfacade - Supports Laravel 11, 12, and 13
Requirements
- PHP 8.2+
- Laravel 11, 12, or 13
Laravel 13 requires PHP 8.3+, which is enforced by Composer through Laravel's own package constraints.
Installation
Install the package via Composer:
Laravel package discovery will register the service provider and facade automatically.
Usage
Resolve the collection from the container:
Resolve it by binding name:
Use the facade:
Testing
Run the test suite using Pest:
Contributing
Please see CONTRIBUTING.md for details on how to contribute to this project.
Security
Please see SECURITY.md for details on reporting security vulnerabilities.
License
This package is open-sourced software licensed under the MIT license.
All versions of laravel-countries with dependencies
illuminate/support Version ^11.0 || ^12.0 || ^13.0
omisai/php-countries Version ^1.4