Rinvex released a new package that we can use to retrieve 250 countries worldwide's details including name, demonym, capital, iso codes, geo data, currencies, flags, emoji, etc.

rinvex country package

Rewritten Rinvex Country package from scratch, introducing the following changes in the new release:

  • Intuitive API

  • Single file per country

  • Unit tested & code coverage

  • Small file size & memory footprint

  • Short-listed file for lightweight menus

  • Dropped illuminate/support dependency

  • Featuring emoji flags, SVG flags, geographical data structure (GeoJson)

  • Faster 500% than older version due to file separation & dropping dependencies

  • More disciplined to SRP with separation of concerns (Loader & Country classes)

Rough performance benchmark:

  • 68kb file size with ~300kb memory footprint of the whole shortlist / ~20ms

  • 3kb file size with ~30kb memory footprint for single country with full details / ~6ms

Download link

https://github.com/rinvex/country

Introduction/Blog

https://blog.rinvex.com/rinvex-country-the-best-php-countries-package-ever-we-claim-f7a0a7b4eab8/?utm_source=learninglaravel.net