I would like to introduce cakephp with XAMPP."I can't find intl" appears.

Asked 1 years ago, Updated 1 years ago, 113 views

I am using XAMPP 7.1.10/PHP 7.1.10 in OS 10.12.6 to deploy cakePHP3.
"We are building the environment according to the book ""Introduction to PHP Framework CakePHP3""."
First, we added "extension=php_intl.so" in the text editor to the beginning of the "php.ini" sentence in the XAMPP file.
We also added the environment variable PATH from the terminal so that PHP in XAMPP runs.
Then, when I download the composer and install cakephp using composer.phar, it says "intl not found" and it is stuck.
I heard that this kind of trouble is likely to occur on Macs, so as the book says, I installed Xcode and the Command Line Tool, installed HomeBrew, installed intl and autoconf, but it didn't work.

The error in question is here.

Installing cakephp/app (3.5.0)

Installing cakephp/app (3.5.0): Loading from cache
Created project incake3 app
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1

cakephp/cakephp 3.5.4 requirements ext-intl*->the requested PHP extension intl is missing from your system.
cakephp/cakephp 3.5.3 require ext-intl*->the requested PHP extension intl is missing from your system.
cakephp/cakephp 3.5.2 requirements ext-intl*->the requested PHP extension intl is missing from your system.
cakephp/cakephp 3.5.1 requires ext-intl*->the requested PHP extension intl is missing from your system.
cakephp/cakephp 3.5.0 requirements ext-intl*->the requested PHP extension intl is missing from your system.
Installation request for cakephp/cakephp 3.5.*-> satis feasible by cakephp/cakephp [3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.5.4].
To enable extensions, verify that they are enabled in your.ini files:

/Applications/XAMPP/xamppfiles/etc/php.ini
You can run php --ini inside terminal to see which files are used by PHP in CLI mode.

I look forward to hearing from you.

macos cakephp composer xampp

2022-09-30 21:27

2 Answers

To run CakePHP 3.x on mariadb/mysql, for example, the Linux version is as follows:
apache class ·httpd
·mod_rewrite.so
php class ·php
·php-develop
·php-mbstring
·php-pdo
·php-gd
·php-intl
·php-xml
·php-mysql
mariadb/mysql class
·mariadb-server
Others (required for Composer usage)
·git
·unzip

Each Xampp version is accompanied by dll, but some are not loaded by default.
Make sure that it is written in the configuration file as follows and correct it accordingly.
Also, prepare Composer.

xampp\apache\conf\http.conf
·LoadModule rewrite_module modules/mod_rewrite.so

xampp\php\php.ini
·extension=php_intl.dll
·extension=php_mbstring.dll

Composer-Setup.exe

Also, if the programming method is not good enough

Directory delimiter issues, etc. Development Xampp: Production Linux is not recommended.
If the production is Linux,
It is highly recommended that development be built on Linux using VirtualBox etc.


2022-09-30 21:27

The following URL may be helpful.
https://qiita.com/ysnsyks2/items/176cfddbdf1f79d65a75

According to the above URL,

->php.intl not included

It seems that is the cause.
Let's try installing it.


2022-09-30 21:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.