https://github.com/dcblogdev/laravel-countries
A Laravel countries list package
https://github.com/dcblogdev/laravel-countries
Last synced: 6 months ago
JSON representation
A Laravel countries list package
- Host: GitHub
- URL: https://github.com/dcblogdev/laravel-countries
- Owner: dcblogdev
- License: other
- Created: 2019-02-13T23:57:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-07T23:05:50.000Z (about 4 years ago)
- Last Synced: 2025-04-20T09:38:40.733Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Funding: .github/FUNDING.yml
- License: license.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/dcblogdev/laravel-countries)
[](https://packagist.org/packages/dcblogdev/laravel-countries)

A Laravel countries list package
## Installation
Via Composer
```
composer require dcblogdev/laravel-countries
```
In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the service provider in config/app.php file:
```php
'providers' => [
// ...
Dcblogdev\Countries\CountriesServiceProvider::class,
];
```
## Usage
In a controller import the class:
```php
use Dcblogdev\Countries\Facades\Countries;
```
In a view or closure call the facade:
This will return an object of countries
```php
Countries::all();
```
## Change log
Please see the [changelog](changelog.md) for more information on what has changed recently.
## Contributing
Contributions are welcome and will be fully credited.
Contributions are accepted via Pull Requests on [Github](https://github.com/dcblogdev/laravel-countries).
## Pull Requests
- **Document any change in behaviour** - Make sure the `readme.md` and any other relevant documentation are kept up-to-date.
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
## Security
If you discover any security related issues, please email dave@daveismyname.com email instead of using the issue tracker.
## License
license. Please see the [license file](license.md) for more information.