Install PHP Common Libraries on Ubuntu

I’m using a LAMP stack on my Ubuntu desktop for my development environment. So I’m writing this article so I know what to install when I move or change my laptop. There are some PHP libraries that I must have to develop applications using WordPress, Laravel, CodeIgniter, PHP Slim Framework, etc.

For a fresh Ubuntu install I need to install the PHP common libraries I need with this command:

apt-get install libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libruby libapache2-mod-ruby libapache2-mod-python php5-curl php5-intl php5-memcache php5-memcached php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached