This repository has some tools to work with Persian names.
first use this code in console terminal to get the package
composer require samon/persian-names
then put this code at the top of your codes:
require './vendor/autoload.php';
now define new PersianNames\Names()
object
$person = new PersianNames\Names();
now you can access to the methodes.
This source is written in PHP.
The names are come from this Link