PHP code example of programmertowheed / bd-courier-fraud-checker
1. Go to this page and download the library: Download programmertowheed/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/ */
programmertowheed / bd-courier-fraud-checker example snippets
[
'steadfast' => [
'status' => true,
'message' => 'Successful.',
'data' => [
'success' => 2,
'cancel' => 0,
'total' => 2,
'deliveredPercentage' => 100,
'returnPercentage' => 0,
],
],
'pathao' => [
'status' => true,
'message' => 'Successful.',
'data' => [
'success' => 3,
'cancel' => 0,
'total' => 3,
'deliveredPercentage' => 100,
'returnPercentage' => 0,
],
],
'redx' => [
'status' => true,
'message' => 'Successful.',
'data' => [
'success' => 0,
'cancel' => 0,
'total' => 0,
'deliveredPercentage' => 0,
'returnPercentage' => 0,
],
],
]
use Programmertowheed\BdCourierFraudChecker\Courier\Pathao;
use Programmertowheed\BdCourierFraudChecker\Courier\Steadfast;
use Programmertowheed\BdCourierFraudChecker\Courier\Redx;
$pathao = (new Pathao)->pathao("01827062978");
$steadfast = (new Steadfast())->steadfast("01827062978");
$redx = (new Redx())->redx("01827062978");
bash
php artisan vendor:publish --provider="Programmertowheed\BdCourierFraudChecker\BdCourierFraudCheckerServiceProvider"
bash
php artisan vendor:publish --tag=bdcourierfraudchecker-config