简体   繁体   中英

requires ext-intl * php

I am using UBUNTU 14.04 and with xampp installed.

however, I am having issue download package from

https://github.com/giggsey/libphonenumber-for-php . I have got the composer installed as well. created composer.json file

When I run php composer.phar install I received following error

  Problem 1
    - giggsey/libphonenumber-for-php 6.2.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - giggsey/libphonenumber-for-php 6.2.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - giggsey/libphonenumber-for-php 6.2.0.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - giggsey/libphonenumber-for-php 6.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - giggsey/libphonenumber-for-php 6.1.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - giggsey/libphonenumber-for-php 6.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - giggsey/libphonenumber-for-php 6.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - Installation request for giggsey/libphonenumber-for-php ~6.0 -> satisfiable by giggsey/libphonenumber-for-php[6.0, 6.1, 6.1.1, 6.2, 6.2.0.1, 6.2.1, 6.2.2].

You can install the intl extension via apt-get:

sudo apt-get install php5-intl

Restart your server after the installation completes:

sudo service apache2 restart

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM