Download the PHP package aheenam/countries without Composer
On this page you can find all versions of the php package aheenam/countries. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aheenam/countries
More information about aheenam/countries
Files in aheenam/countries
Package countries
Short Description A simple Laravel package to handle country lists
License MIT
Informations about the package countries
Laravel Countries
This package is a Laravel Wrapper for the country-list package by Saša Stamenković. It was created as a fallback to antonioribeiro/countries which has PHP 7 and Laravel 5.3 as it minimum requirements.
Note: that this package does NOT contain the whole functionality as antonioribeiro/countries but only provides the name of the countries
Installation
You can install the package via composer:
Then add the service provider must be registered:
Also add Countries to your aliases list
Usage
There are not that much methods for now. If you are interested in more, feel free to add them and send us a PR.
Get All Countries
returns a list of all countries in all languages currently loaded. By default the current language set in App::setLocale()
is populated.
If you want to get the countries in another language, use
Get A specific country
To get a specific country call the get()
method with the language key, you are looking for
If you want to get the language in a specific language, just add the language code as the second parameter.
Changelog
Check CHANGELOG for the changelog
Testing
To run tests use
or
on windows machines.
Contributing
soon
Security
If you discover any security related issues, please email [email protected] or use the issue tracker of GitHub.
About Aheenam
Aheenam is a small company from NRW, Germany creating custom digital solutions. Visit our website to find out more about us.
License
The MIT License (MIT). Please see License File for more information.