https://github.com/axeldotdev/countries
This package give you countries informations.
https://github.com/axeldotdev/countries
countries package php
Last synced: over 1 year ago
JSON representation
This package give you countries informations.
- Host: GitHub
- URL: https://github.com/axeldotdev/countries
- Owner: axeldotdev
- License: mit
- Created: 2021-09-22T16:46:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-05T10:08:07.000Z (over 4 years ago)
- Last Synced: 2025-01-10T01:51:55.743Z (over 1 year ago)
- Topics: countries, package, php
- Language: PHP
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# This package give you countries informations.
[](https://packagist.org/packages/axeldotdev/countries)
[](https://github.com/axeldotdev/countries/actions?query=workflow%3ATests+branch%3Amaster)
[](https://github.com/axeldotdev/countries/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amaster)
[](https://packagist.org/packages/axeldotdev/countries)
This package give you countries informations.
## Installation
You can install the package via composer:
```bash
composer require axeldotdev/countries
```
## Usage
```php
$countries = Axeldotdev\Countries\Country::all(translation: LANG::EN);
$european_countries = Axeldotdev\Countries\Country::european(translation: Lang::FR);
```
This package only supports english and french. Feel free to add other lang with a PR.
## Testing
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Axel Charpentier](https://github.com/axeldotdev)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.