How To Install php-numbers-words on Debian 9
Introduction
In this tutorial we learn how to install php-numbers-words
on Debian 9.
What is php-numbers-words
php-numbers-words is:
With Numbers_Words class you can convert numbers written in arabic digits to words in several languages. You can convert an integer between -infinity and infinity. If your system does not support such long numbers you can call Numbers_Words::toWords() with just a string.
With the Numbers_Words::toCurrency($num, $locale, ‘USD’) method you can convert a number (decimal and fraction part) to words with currency name.
The following languages are supported:
- bg (Bulgarian) by Kouber Saparev
- cs (Czech) by Petr ‘PePa’ Pavel
- de (German) by Piotr Klaban
- dk (Danish) by Jesper Veggerby
- en_100 (Donald Knuth system, English) by Piotr Klaban
- en_GB (British English) by Piotr Klaban
- en_IN (Indian English) by Piotr Klaban
- en_US (American English) by Piotr Klaban
- es (Spanish Castellano) by Xavier Noguer
- es_AR (Argentinian Spanish) by Martin Marrese
- es_MX (Mexican Spanish) by Martin Marrese and Pavel Oropeza
- es_VE (Venezuelan Spanish) by Martin Marrese and Pavel Oropeza
- et (Estonian) by Erkki Saarniit
- fr (French) by Kouber Saparev
- fr_BE (French Belgium) by Kouber Saparev and Philippe Bajoit
- he (Hebrew) by Hadar Porat
- hu_HU (Hungarian) by Nils Homp
- id (Indonesian) by Ernas M. Jamil and Arif Rifai Dwiyanto
- it_IT (Italian) by Filippo Beltramini and Davide Caironi
- lt (Lithuanian) by Laurynas Butkus
- lv (Latvian) by Andrius Virbicianskas
- nl (Dutch) by WHAM van Dinter
- pl (Polish) by Piotr Klaban
- pt_BR (Brazilian Portuguese) by Igor Feghali
- ro_RO (Romanian) by Bogdan Stancescu
- ru (Russian) by Andrey Demenev
- sv (Swedish) by Robin Ericsson
- tr_TR (Turkish) by Shahriyar Imanov
- ua (Ukrainian) by Andrey Demenev and Vital Leshchyk
There are three methods to install php-numbers-words
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install php-numbers-words Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install php-numbers-words
using apt-get
by running the following command:
sudo apt-get -y install php-numbers-words
Install php-numbers-words Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install php-numbers-words
using apt
by running the following command:
sudo apt -y install php-numbers-words
Install php-numbers-words Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install php-numbers-words
using aptitude
by running the following command:
sudo aptitude -y install php-numbers-words
How To Uninstall php-numbers-words on Debian 9
To uninstall only the php-numbers-words
package we can use the following command:
sudo apt-get remove php-numbers-words
Uninstall php-numbers-words And Its Dependencies
To uninstall php-numbers-words
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove php-numbers-words
Remove php-numbers-words Configurations and Data
To remove php-numbers-words
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge php-numbers-words
Remove php-numbers-words configuration, data, and all of its dependencies
We can use the following command to remove php-numbers-words
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge php-numbers-words
Dependencies
php-numbers-words have the following dependencies:
References
Summary
In this tutorial we learn how to install php-numbers-words
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.