PHP code example of amitkhare / validbit

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

    

amitkhare / validbit example snippets

sh

use AmitKhare\ValidBit; // use namespace.

  OR with database for unique field check
$v = new ValidBit($host,$username,$password,$dbname); // instantiate ValidBit With Database features;

$v->setSource($_POST); // set data source array;

$v->check("mobile","
}