1. Go to this page and download the library: Download blacksenator/name-parser library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
echo $name->getGivenName(); // Otto Eduard Leopold
echo $name->getFullName();
$parser = new blacksenator\NameParser\Parser([
new blacksenator\NameParser\Language\German(), // default in this version
new blacksenator\NameParser\Language\English(), // recommended
//
])
$parser = new blacksenator\NameParser\Parser();
$parser->setNicknameDelimiters(['(' => ')']);
$parser = new blacksenator\NameParser\Parser();
$parser->setWhitespace("\t _.");
$parser = new blacksenator\NameParser\Parser();
$parser->setMaxSalutationIndex(2);
$parser = new blacksenator\NameParser\Parser();
$parser->setMaxCombinedInitials(3);