HTML5 Zone is brought to you in partnership with:

Hirvesh Munogee is a freelance web developer who also happens to have a passion for blogging. Hirvesh is a DZone MVB and is not an employee of DZone and has posted 177 posts at DZone. You can read more from them at their website. View Full User Profile

Useful List of Countries for HTML, JSON, PHP, and MORE!

12.20.2012
| 7506 views |
  • submit to reddit

The List Of Countries usage scenario is simple – this is the task that needs to be solved in a majority of applications.  No matter which programming language or data format you use in your application (or which language you speak, for that matter), this country list will suit your needs.

Formats Available:

  • Text
  • JSON
  • YAML
  • XML
  • HTML (Select, Flags)
  • CSV
  • SQL
  • PHP

For developers, this is the most common case, they simply need a country table for their database. There are few SQL dumps for each DBMS:

  • MySQL
  • PostgreSQL
  • SQLite
  • SQL Server

Multilingual

All formats are also available in multiple languages, and you can find the full language list here.

Country Flags

Thanks to the world-flags-sprite project,a special HTML version which includes country flags could be done. You can see the demo page here.

Requirements: None
Demo:http:/ / dev. umpirsky. com/ …all-data-formats/
License: Free

Published at DZone with permission of Hirvesh Munogee, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)