Download the PHP package thalidzhokov/country-codes without Composer

On this page you can find all versions of the php package thalidzhokov/country-codes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package country-codes

PHP Class CountryCodes

CountryCodes PHP Class to get array of countries with ISO 3166-1 alpha-2, ISO 3166-1 alpha-3, ISO 3166-1 numeric and ISD codes it can provide following information related to country

  1. alpha2 ISO-3166-1 alpha-2 https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
  2. alpha3 ISO-3166-1 alpha-3 https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
  3. numeric ISO-3166-1 numeric https://en.wikipedia.org/wiki/ISO_3166-1_numeric
  4. isd Internatiguonal Subscriber Dialing code https://en.wikipedia.org/wiki/List_of_country_calling_codes
  5. continentCode Continent Code
  6. continent Continent Name
  7. country Country Name
  8. countryFull Country Full Name
  9. emoji Emoji Flag http://unicode.org/emoji/charts/emoji-ordering.html#country-flag

Installation

Install via Composer

OR include CountryCodes.php in your PHP code

Usage

Change default language

Method get()

Get array key => value

Return

Method get2()

Get array with multiple values key => [value1, value2, ...]

Return

Method getByContinent()

Get array key => value by continent

Return

Method getEmojiByAlpha2()

Get emoji flag code by alpha2

Return

Method getEmojiByAlpha3()

Get emoji flag code by aplha3

Return


All versions of country-codes with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package thalidzhokov/country-codes contains the following files

Loading the files please wait ....