Download the PHP package oldcodefork/isocountries without Composer
On this page you can find all versions of the php package oldcodefork/isocountries. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oldcodefork/isocountries
More information about oldcodefork/isocountries
Files in oldcodefork/isocountries
Package isocountries
Short Description IsoCountries - a simple class for managing ISO2 and ISO3 countries
License FreeBSD
Informations about the package isocountries
IsoCountries
A simple class for returning ISO2 and ISO3 country codes and names. Great for populating HTML drop down country lists.
Features
- Complete ISO2/ISO3 lists with mappings to the corresponding country names
- Get mappings for the EU, Europe, North America, South America, Africa, Asia & Oceania
- Filter out countries you don't want
- Move preferred countries to the top of the returned list
Installation
Install Composer (assuming you haven't already got it):
Add IsoCountries to your composer.json file via Packagist:
or link to the repository directly:
Run "composer install".
Examples
Get All Countries
Move Country To Top
Exclude Countries
Get All EU Member States
Note: getEurope(), getNorthAmerica(), getSouthAmerica(), getAfrica(), getAsia() and getOceania() are also available.
Get Country Name From Code
Get Code From Country Name
License
Copyright (c) 2014, Brightfish Software/Ed Eliot All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project.