Install or enable phps intl extension

Although there are many types of hosting A web hosting service is a type of Internet hosting service that allows individuals and organizations to make their website accessible via the World Wide Web., most WordPress users use shared hosting, and some use VPS A virtual private server (VPS) is a virtual machine sold as a service by an Internet hosting service. A VPS runs its own copy of an operating system (OS), and customers may have superuser-level access to that operating system instance, so they can install almost any software that runs on that OS. or Cloud hosting. Those who use VPS or Cloud usually manage their own servers and therefore decide the use of PHP PHP (PHP: Hypertext Preprocessor) is a general-purpose scripting language especially suited to web development. PHP code is usually processed on a web server by a PHP interpreter. On a web server, the result of the interpreted and executed PHP code would form the whole or part of an HTTP response. extensions, but those who use shared hosting usually do not have that option.

A few weeks ago came to the Hosting Team a request to analyze the suitability of using the Internationalization PHP extension because, although the WordPress Core Core is the set of software required to run WordPress. The Core Team builds WordPress. does not need it just now, partly because it is known that it is not recommended or mandatory, development teams do not use it because it is not there, and hosters do not install it because WordPress does not use it. It’s the fish that bites its own tail.

Deciding which Apache Apache is the most widely used web server software. Developed and maintained by Apache Software Foundation. Apache is an Open Source software available for free. modules, which PHP extensions, which database A database is an organized collection of data. Access to this data is usually provided by a "database management system" (DBMS) consisting of an integrated set of computer software that allows users to interact with one or more databases and provides access to all of the data contained in the database. Because of the close relationship between them, the term "database" is often used casually to refer to both a database and the DBMS used to manipulate it. configuration or choice of cache A cache is a component that stores data so that future requests for that data can be served faster; the data stored in a cache might be the result of an earlier computation or a copy of data stored elsewhere. is not something to be taken lightly.

Why is the PHP Intl extension important?

WordPress is a global, international software, with support for a multitude of languages and with infinite combinations. Approximately half of the installations are in a language that is not the default (English) and this leads us to think about localisms, transliteration, encoding conversions, calendar operations, collation … in short, everything you have with the different languages and formats that are around the planet. And this is what the PHP Intl extension provides.

What do we as a WordPress Community gain from this extension?

Above all, we gain the possibility to use a lot of functions that can make our life easier than developers and that would improve the way we develop to improve WordPress.

Functions like collator_compare will allow us to compare Unicode text strings; with numfmt_format we will be able to format a number according to the selected locale; the normalization of characters; the formatting of messages; to know which is the first day of the week according to the locale, without needing to ask the user for it.

And not only in functionality or ease, also to improve security, with functions such as Spoofchecker that can tell you if ‘google.com’, ‘goog1e.com’ can confuse the user, or functions related to Internet domains, both to convert an IDN domain to text and text to IDN.

Yes, you may well think that WordPress already does many of these things, but in many cases it does them using hacks that could now be deprecated and used natively.

Hosting Team Recommendation

Taking into account that WordPress continues to grow, the Hosting Team has considered a good recommendation, but not an obligation, for all hostings that work with WordPress the possibility of offering this extension, by default, to all users.

Also, we open discussion to all hosters and also the Core Team and Plugins Team.

+make.wordpress.org/core/
+make.wordpress.org/plugins/
+make.wordpress.org/updates/

#core, #php, #plugins

Some PHP libraries that support internationalization depends on PHP intl extension. Somehow, intl extension is not installed by default. This article will show you how to install the intl extension. It has been tested well on OS X Yosemite with PHP 5.5.

1) Prerequisite

  1. Homebrew
  2. PECL
  3. Terminal

2) Install ICU Libraries via Homebrew

ICU is shorthand for International Component for Unicode. You can check the site here. We have to install this first.

$ brew update

$ brew install icu4c

3) Install Intl Extension via PECL

$ sudo pecl update-channels

$ sudo pecl install intl

You will be prompted in terminal the path where the extension is installed. Mine was

/usr/local/Cellar/php55/5.5.19/lib/php/extensions/no-debug-non-zts-20121212/intl.so

Here is my terminal screenshot after installation done.

Install or enable phps intl extension

Attention! You will probably get this error below when install intl

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.54.dylib
Referenced from: /usr/local/bin/php
Reason: image not found

As solution, you need to execute the following command

$ brew upgrade php55

Then try to install intl again.

4) Add Intl Extension to php.ini

Check where your php.ini location is

$ php --ini

Open your php.ini and add the following line at bottom of file with your intl.so extension path (see its path on step 2)

extension=your-intl.so-extension-path

In my system, it was

extension=/usr/local/Cellar/php55/5.5.19/lib/php/extensions/no-debug-non-zts-20121212/intl.so

Save and quit the file

5) Restart Apache

After making changes on php.ini file, you need to restart apache.

$ sudo apachectl restart

6) Check the installation

There are two ways to check if our intl installation is success. First is using the following command

$ php -m | grep intl

The second way using phpinfo()

Install or enable phps intl extension

Summary

We are done installing intl extension for PHP. :)

How do I install or enable PHP's intl extension?

How to install Intl extension in Xampp ?.
Open [xampp_folder_path]/php/php. ini to edit..
search for – extension=php_intl.dll ;extension=php_intl.dll. and uncomment the line by removing semicolon. extension=php_intl.dll..
save the file and restart Apache..

How do I enable Intl extension in cPanel?

Procedure.
Log into WHM and go to EasyApache 4 and click customize next to "Currently Installed Packages".
Click the "PHP Extensions" link and enter "intl" without quotes to search..
Enable the intl module for the PHP versions desired..
Click the link "Review".

How do I enable Intl extension on Mac?

Re: Install php_extension intl into Mac OS X Server.
(1) Use "port" to install php5-intl % sudo port install php5-intl..
(2) Copy intl.so into active php extensions directory % sudo cp /opt/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so /usr/lib/php/extensions/no-debug-non-zts-20090626..

How do I enable PHP extensions in Windows?

Here's what you do, from what I understand:.
Put the extension library folder under PHP's install path. On my computer this is C:\xampp\php\ext . Search in your PHP. ini for "extension_dir" to find what yours is..
Edit php. ini to load the extension. Find ; Dynamic Extensions ; . Add line extension=my_lib.dll..