PHP code example of jaxwilko / human-name-processor

1. Go to this page and download the library: Download jaxwilko/human-name-processor 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/ */

    

jaxwilko / human-name-processor example snippets




essor = new JaxName\HumanNameProcessor();
$name = $processor->make('Mr. John Smith');

$name->getTitle(); // Mr.
$name->getFirstName(); // John
$name->getLastName(); // Smith

// the class also provides a __toString method

echo $name; // Mr. John Smith