PHP code example of arendach / vodafone-name

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

    

arendach / vodafone-name example snippets


\Arendach\VodafoneName\Providers\NameServiceProvider::class,

$nameService = new \Arendach\VodafoneName\Name();

$name = $nameService->search('380666817731'); // return name or null
// or
$nameService->searchAndSave('380666817731'); // return name or null

$nameService->getName(); // name from session
$nameService->getStatus(); // status of search name: -1 | 1