diff --git a/README.md b/README.md index 6d2b52786..04df285f6 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Total Downloads](https://poser.pugx.org/giggsey/libphonenumber-for-php/downloads.png)](https://packagist.org/packages/giggsey/libphonenumber-for-php) [![Latest Stable Version](https://poser.pugx.org/giggsey/libphonenumber-for-php/v/stable.png)](https://packagist.org/packages/giggsey/libphonenumber-for-php) +[![License](https://poser.pugx.org/giggsey/libphonenumber-for-php/license.svg)](https://packagist.org/packages/giggsey/libphonenumber-for-php) ## What is it? A PHP library for parsing, formatting, storing and validating international phone numbers. This library is based on Google's [libphonenumber](https://code.google.com/p/libphonenumber/) and forked from a version by [Davide Mendolia](https://github.com/davideme/libphonenumber-for-PHP). @@ -177,7 +178,13 @@ $timeZones = $timeZoneMapper->getTimeZonesForNumber($swissNumberProto); ## Generating data -Data can be generated using phing, running the 'compile' target. +Phing is used to 'compile' the metadata. + +Ensure you have all the dev composer dependencies installed, then run + +```bash +vendor/bin/phing compile +``` ## Integration with frameworks diff --git a/composer.json b/composer.json index 431258bf3..551488de3 100644 --- a/composer.json +++ b/composer.json @@ -35,6 +35,7 @@ "ext-intl": "*" }, "require-dev": { + "phing/phing": "~2.7", "phpunit/phpunit": "~4.0", "symfony/console": "~2.4", "satooshi/php-coveralls": "~0.6"