How To Install php-Faker on CentOS 7
Introduction
In this tutorial we learn how to install php-Faker
on CentOS 7.
What is php-Faker
Faker is a PHP library that generates fake data for you. Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you. Faker is heavily inspired by Perl’s Data Faker [2]. Autoloader Optional * CakePHP (http * Doctrine ORM (php-doctrine-orm) * Mandango (http * Propel (http [1] http [2] http
We can use yum
or dnf
to install php-Faker
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-Faker.
Install php-Faker on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install php-Faker
using yum
by running the following command:
Install php-Faker on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install php-Faker
using dnf
by running the following command:
How To Uninstall php-Faker on CentOS 7
To uninstall only the php-Faker
package we can use the following command:
References
Summary
In this tutorial we learn how to install php-Faker
on CentOS 7 using yum
and dnf
.