PHP code example of refatbd / bd-courier-fraud-checker
1. Go to this page and download the library: Download refatbd/bd-courier-fraud-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/ */
refatbd / bd-courier-fraud-checker example snippets
use Refatbd\BdCourierFraudChecker\Facade\BdCourierFraudChecker;
$result = BdCourierFraudChecker::check('01XXXXXXXXX');
namespace Refatbd\BdCourierFraudChecker\Courier;
use Refatbd\BdCourierFraudChecker\Traits\Helpers;
class YourCourier
{
use Helpers;
public function __construct()
{
$this->checkRequiredConfig(['your_courier_user', 'your_courier_password']);
}
public function check($phoneNumber)
{
$phoneNumber = $this->validateBDPhoneNumber($phoneNumber);
// Add your API logic here
return [
'status' => true,
'message' => 'Successful.',
'data' => [],
];
}
}