How to install PHP intl extension in Ubuntu 14.04

To install the PHP intl extension on Ubuntu 14.04, follow these steps:

  1. First, make sure you have the necessary package repositories and dependencies installed by running the following commands:

Watch a course Learn object oriented PHP

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
  1. Next, install the PHP intl extension and the necessary dependencies by running:
sudo apt-get install php5.6-intl
  1. Finally, enable the extension by adding the following line to your PHP configuration file (usually php.ini):
extension=intl.so
  1. Restart your web server to apply the changes.

That's it! The PHP intl extension should now be installed and enabled on your system.