From 2c93cbe5287bf659e8c92660f4f405ef22216982 Mon Sep 17 00:00:00 2001 From: Joshua Gigg Date: Tue, 10 Jun 2014 11:27:34 +0000 Subject: [PATCH] Update build instructions to use a local phing No need for a global install of phing anymore, as it's now a dev composer dependency. --- README.md | 9 ++++++++- composer.json | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) 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"