Composer require php intl

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requires ext-intl * -> the requested PHP extension intl is missing from your system #38

Requires ext-intl * -> the requested PHP extension intl is missing from your system #38

Comments

docker run —rm —volume $PWD:/app composer install —no-dev -o -n

Loading composer repositories with package information Installing dependencies from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for xxxx/user 5.1.0 -> satisfiable by xxxx/user[5.1.0]. - xxxx/user 5.1.0 requires ext-intl * -> the requested PHP extension intl is missing from your system. Problem 2 - Installation request for sebastian/money v1.6.2 -> satisfiable by sebastian/money[v1.6.2]. - sebastian/money v1.6.2 requires ext-intl * -> the requested PHP extension intl is missing from your system. Problem 3 - sebastian/money v1.6.2 requires ext-intl * -> the requested PHP extension intl is missing from your system. - xxxx/money 0.3.0 requires sebastian/money ~1.5 -> satisfiable by sebastian/money[v1.6.2]. - Installation request for xxxx/money 0.3.0 -> satisfiable by xxxx/money[0.3.0]. To enable extensions, verify that they are enabled in your .ini files: - - /usr/local/etc/php/conf.d/date_timezone.ini - /usr/local/etc/php/conf.d/docker-php-ext-zip.ini - /usr/local/etc/php/conf.d/memory-limit.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. 

The text was updated successfully, but these errors were encountered:

Читайте также:  Ruby embedded in html

Источник

‘Composer: The requested PHP extension ext-intl * is missing from your system

I am trying to use composer.json file. but, when I am trying to run command ‘ composer install ‘ in my path/project/ , I am getting an error:

enter image description here

I have already configured my wamp for ‘ extension=php_intl.dll ‘ and copied all icu*.dll in ‘ D:\wamp\bin\apache\apache2.2.22\bin ‘ from ‘ D:\wamp\bin\php\php5.3.13 ‘ and it’s showing in phpinfo() :

enter image description here

without copy icu*.dll also works and showing in phpinfo() ;

Kindly, let me know if I have intl install on my wamp and composer install on my pc then why I am getting this error. really, it is so annoying.

  1. OS: windows 7 (64)
  2. PHP: 5.3.13
  3. Apache:2.2.22
  4. Composer: installed by executable file
  5. Pear: installed (latest)
  6. PHPUnit: installed (latest)

My composer.json is as below:

< "name" : "sebastian/money", "description" : "Value Object that represents a monetary value (using a currency's smallest unit)", "keywords" : ["money"], "homepage" : "http://www.github.com/sebastianbergmann/money", "license" : "BSD-3-Clause", "authors" : [< "name" : "Sebastian Bergmann", "email" : "[email protected]" > ], "require" : < "php" : ">=5.3.3", "ext-intl" : "*" >, "require-dev" : < "phpunit/phpunit" : "~4.0" >, "autoload" : < "classmap" : [ "src/" ] >, "extra" : < "branch-alias" : < "dev-master" : "1.3.x-dev" >> > 

Let me know if any other details is required..

Any feedback/help would be highly appreciated.

Solution 1: [1]

PHP uses a different php.ini for command line php than for the web/apache php. So you see the intl extension in phpinfo() in the browser, but if you run php -m in the command line you might see that the list of extensions there does not include intl.

You can check using php -i on top of the output it should tell you where the ini file is loaded from. Make sure you enable the intl extension in that ini file and you should be good to go.

For php.ini 5.6 version (check version using php -v)

;extension=php_intl.dll ; remove semicolon extension=php_intl.dll 
;extension=intl ; remove semicolon extension=intl 

Solution 2: [2]

I encountered this using it in Mac, resolved it by using —ignore-platform-reqs option.

composer install --ignore-platform-reqs 

Solution 3: [3]

In linux (Debian Jessie for example):

will make the job to you due will create a simbolic link to it.

Solution 4: [4]

To enable intl extension follow the instructions below.

You need enable extension by uncommenting the following line extension=php_intl.dll in the C:\xampp\php\php.ini file. Once you uncomment the extension=php_intl.dll, then you must restart apache server using XAMPP control panel.

//about line 998 ;extension=php_intl.dll change as extension=php_intl.dll 

(Note: php.ini file mostly in the following directory C:\xampp\php)

Solution 5: [5]

I have solved this problem by adding —ignore-platform-reqs command with composer install in ubuntu.

composer install --ignore-platform-reqs 

Solution 6: [6]

from your composer.json file.

Because sometimes for some helper functions, the IDE complains that the extension is missing from the composer.json file. Immediately press Alt+Enter to add it to the composer. But that doesn’t mean that composer will count them in. The composer will complain next time while doing some operations. So that, we should not blindly type Alt+Enter rather than installing them manually in composer by doing composer install .

As I think you have entered it manually, you should remove it, then install it in proper procedure composer install

Or else you can run composer update to count that added dependencies in.

Solution 7: [7]

This is bit old question but I had faced same problem on linux base server while installing magento 2.

When I am firing composer update or composer install command from my magento root dir. Its was firing below error.

Problem 1 - The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension. Problem 2 - The requested PHP extension ext-mbstring * is missing from your system. Install or enable PHP's mbstring extension. Problem 3 - Installation request for pelago/emogrifier 0.1.1 -> satisfiable by pelago/emogrifier[v0.1.1]. - pelago/emogrifier v0.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. . 

Then, I searched for the available intl & intl extensions, using below commands.

yum list php*intl yum install php-intl.x86_64 yum list php*mbstring yum install php-mbstring.x86_64 

Solution 8: [8]

If You have got this error while running composer install command, don’t worry. Steps to be followed and requirements:

  • Step1: Go to server folder such as xampp(or) wampp etc.
  • Step2: open php folder inside that and go to ext folder.
  • Step3: If you find a file named as php_intl.dll no problem.

Just go to php.ini file and uncomment the line

Note: If you don’t find any of the file named as php_intl.dll, then you need to upgrade the PHP version.

Solution 9: [9]

(with xampp server)open php.ini in «.\xampp\php«

change ;extension=intl to extension=intl

Solution 10: [10]

For php.ini 5.6 version (check version using php -v)

;extension=php_intl.dll ; remove semicolon and keep like this extension=php_intl.dll

;extension=intl ; remove semicolon and keep like this extension=intl

Note — After That Make Sure to Restart Your Xampp,Wamp Server in you Local Machine.

Solution 11: [11]

Just uncomment this line (to find it, simply search this line in editor):

(Remove semicolon to uncomment)

For me, no need to restart XAMPP (in your case, WAMP). But if didn’t work, restart it.

Solution 12: [12]

In latest XAMPP version; You need to find only intl(Line no 912)in php.ini file. Change ;extension=intl To extension=intl

Solution 13: [13]

In my case, I am using ubuntu, run this command, it will be solved if your system is also ubuntu.

sudo apt-get install php-intl 

Solution 14: [14]

I have faced the same issue on my server. And it is mainly happened due to miss-match of php version between server version and your system version. I am using Nginx and checked on all my project configuration files, it uses php8.0 but on my terminal it shows php.8.1. Actually my application needs php8.0. The following steps resolved my issue.

To see all my running php versions

sudo update-alternatives --config php 

php all versions page

It shows the following page

Selecting php8.0 for my application. Run the command to see Nginx scripts are ok

sudo systemctl reload nginx 

Finally go to your project directory and update or install your composer

It has been resolved my issue, I expect same will resolve yours.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Источник

Root composer.json requires PHP extension ext-intl * but it is missing from your system. Install or enable PHP’s intl extension

Root composer.json requires PHP extension ext-intl * but it is missing from your system. Install or enable PHP’s intl extension.

Solusi

1. Pertama kita harus tahu dulu lokasi php.ini, dengan command line berikut

2. Lokasi php.ini berada di C://xampp\php\php.ini.

3. Setelah menemukan file php.ini, buka dengan text editor lalu cari dan rubah dari

Root composer.json requires PHP extension ext-intl * but it is missing from your system. Install or enable PHP's intl extension

Root composer.json requires PHP extension ext-intl * but it is missing from your system. Install or enable PHP’s intl extension Awan 2021-04-21T05:37:00-07:00 5.0 stars based on 35 reviews Error Root composer.json requires PHP extension ext-intl * but it is missing from your system. Install or enable PHP’s intl extension. S.

Источник

Оцените статью