PHP code example of odl / bj-number-validation
1. Go to this page and download the library: Download odl/bj-number-validation 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/ */
odl / bj-number-validation example snippets
$number = 7585415;
$bjNumberValidation = new BjNumberValidation();
$result = $bjNumberValidation->verifyNumber($number);
if($result == true){
return response("Bon numéro du Benin",200);
}else {
return response("Mauvais numero",200);
}