PHP code example of nameparse / nameparse-php

1. Go to this page and download the library: Download nameparse/nameparse-php 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/ */

    

nameparse / nameparse-php example snippets


$np = new NameParse(['key'=>'your_name_parse_key_here']);
$results = $np->parse("Chris Schuld");

$f = $results->getFirst();
$l = $results->getLast();
shell script
composer