Download the PHP package clicksend/integration-library-country-names without Composer
On this page you can find all versions of the php package clicksend/integration-library-country-names. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download clicksend/integration-library-country-names
More information about clicksend/integration-library-country-names
Files in clicksend/integration-library-country-names
Package integration-library-country-names
Short Description Utility library to turn country names into ISO two-letter codes.
License
Informations about the package integration-library-country-names
Utility library to turn country names into ISO two-letter codes.
This library is the PHP clone of the python library: alephdata/countrynames/
Requirements
- PHP
7.0
and later. - Extensions: intl, yaml, mbstring, json.
Tested on PHP: 7.0
, 7.2
, 7.4
, 8.1
Installation
Clone the git repo:
Example:
In your php file, paste this code.
Make sure to edit the integration-library-country-names
directory to match your file structure.
Make sure the directory integration-library-country-names/lib/data
is writable, for caching purpose.
you're all setup! To use the library as a composer package, see below.
To use it as a Composer Package:
First clone the repo to vendor directory in your project, then run composer autoload-dump command
Reloading data/deleting cache
If you updated the data.yaml file, then you need to delete the cache to reload the newly updated data, call this method once for every update:
Unit Test
To unit test run these commands, you need php version >= 7.3
All versions of integration-library-country-names with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
ext-yaml Version *