1. Go to this page and download the library: Download attla/name-checker 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/ */
attla / name-checker example snippets
use NameChecker\NameChecker;
use NameChecker\Exceptions\NCException;
try{
$NameChecker = new NameChecker();
# Social medias names
echo '<pre>';
echo "My github is available ?\n";
var_export($NameChecker->github('jco666')->isAvailable());
echo "\nMy github exist ?\n";
var_export($NameChecker->isThere());
# Domain names
echo "\n\n\nMy domain is available?\n";
var_export($NameChecker->domain('lsdev.cf')->isAvailable());
echo "\nMy domain exist ?\n";
var_export($NameChecker->isThere());
}catch(NCException $e){
echo $e->getMessage(),
'<br>',
$e->error_trace;
}
# Instantiated Class
$NameChecker = new NameChecker();
var_dump($NameChecker->github('jco666')->isAvailable());
echo '<br>';
# Static call
var_dump(NameChecker::github('jco666')::isAvailable());
# NameChecker::method($type, $value)
# Search by ID
NameChecker::facebook('id', 'jco666')::isAvailable();
# or
NameChecker::facebook('jco666')::isAvailable();
# Search by email,
NameChecker::facebook('email', '[email protected]')::isAvailable();
# Search by fone
NameChecker::facebook('phone', '[email protected]')::isAvailable();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.