Download the PHP package jasny/iso without Composer

On this page you can find all versions of the php package jasny/iso. 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 iso

ISO

This package is abandoned and no longer maintained. Use umpirsky/country-list instead.

PHP library around standarized codes

ISO 3166-1

Countries

The Countries class holds a list with (English) country names, conntected to their ISO 3166-1 alpha-2 country code.

You can get a full list of countries, get a country code by name or get a country name by code.

Jasny\ISO\Countries::getList(); // List all countries
Jasny\ISO\Countries::getName("US"); // 'United States'
Jasny\ISO\Countries::getCode("United States"); // 'US'

Searching on an alternative country name is supported. For instance

Jasny\ISO\Countries::getCode("United States"); // 'US'
Jasny\ISO\Countries::getCode("United States of America"); // 'US'
Jasny\ISO\Countries::getCode("USA"); // 'US'

Country subdivisions

The CountrySubdivisions class holds a list with subdivision (eg state of province) names by country, connect to their ISO 3166-2 code.

You can get a list of subdivisions for a country, get a subdivision code by name or get a subdivision name by code.

Jasny\ISO\CountrySubdivisions::getList("US"); // List all US states
Jasny\ISO\CountrySubdivisions::getName("US", "NY"); // 'New York'
Jasny\ISO\CountrySubdivisions::getCode("US", "New York"); // 'NY'

Searching on an alternative subdivision name is supported.

You can also check if a subdivision is required for a full address for a country. This is the case for Austrila, Canada, China, Montenegro, Malaysia and the United States.

Jasny\ISO\CountrySubdivisions::getRequired(); // ['AU', 'CA', 'CN', 'ME', 'MY', 'US']
Jasny\ISO\CountrySubdivisions::isRequired("US"); // true
Jasny\ISO\CountrySubdivisions::isRequired("NL"); // false

CSS Color Module Level 4

Colors

The Colors class allows conversion between the different syntaxes for colors, including color names. The color syntax is devined by W3C standard CSS Color Module Level 4.

Jasny\ISO\Colors::getHex('blue'); // '#0000ff'
Jasny\ISO\Colors::getHex([0, 0, 255]); // '#0000ff'
Jasny\ISO\Colors::getRgb('blue'); // [0, 0, 255]
Jasny\ISO\Colors::getRgb('#0000ff'); // [0, 0, 255]
Jasny\ISO\Colors::getName('#0000ff'); // 'blue'
Jasny\ISO\Colors::getName([0, 0, 255]); // 'blue'

Conversion from and to HSL is currently not supported


All versions of iso with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.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 jasny/iso contains the following files

Loading the files please wait ....