pod-point/countries

A package of useful components for internationalisation in Laravel applications.


README

run-tests

This package provides Laravel and Lumen applications internationalisation features:

  • List of all countries with data such as dialing codes, names, currencies...
  • Limited countries supported by our applications with additional data such as locale, language...
  • Laravel ViewComposers with some data pre-loaded.
  • Facades and helpers for country, currencies and tax rates (VAT).
  • Exchange rates for currencies via OpenExchangeRate's API implementation.

The countries are indexed using their uppercase ISO codes (alpha2/cca2).

Installation

You can install the package via composer:

For Laravel 5.x and PHP <= 7.1

composer require pod-point/countries:^3.0

For Laravel 6.x and PHP >= 7.2

composer require pod-point/countries:^4.0

For Laravel 7.x or 8.x and PHP >= 7.3

composer require pod-point/countries:^5.0

Then, finally, if you're using a Laravel version which doesn't support Auto Discovery, add the service provider to your config/app.php providers array:

'providers' => [
    PodPoint\I18n\CountriesServiceProvider::class,
]

If you're using Lumen, add the following line to your bootstrap/app.php file:

$app->register(PodPoint\I18n\CountriesServiceProvider::class);

Changelog

Please see CHANGELOG for more information on what has changed recently.

Licence

The MIT Licence (MIT). Please see Licence File for more information.

68747470733a2f2f6433683235366e33627a697070702e636c6f756466726f6e742e6e65742f706f642d706f696e742d6c6f676f2e737667

Travel shouldn't damage the earth 🌍

Made with ❤️  at Pod Point