Rinvex Country: The best PHP (Laravel) Countries package ever
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.
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
This post is submitted by our members. Submit a new post.
Tags: Packages Sources Tutorials Laravel 5 Laravel 5.1 Laravel 5.2 Laravel 5.3 Intermediate