Download the PHP package azmolla/fraud-checker-bd-courier without Composer

On this page you can find all versions of the php package azmolla/fraud-checker-bd-courier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fraud-checker-bd-courier

๐Ÿ›ก๏ธ Fraud Checker BD Courier

A powerful framework-agnostic PHP package to analyze customer delivery behavior across top Bangladeshi courier services. (Fully supports Laravel out-of-the-box!)

[![Latest Version on Packagist](https://img.shields.io/packagist/v/azmolla/fraud-checker-bd-courier.svg?style=flat-square)](https://packagist.org/packages/azmolla/fraud-checker-bd-courier) [![Total Downloads](https://img.shields.io/packagist/dt/azmolla/fraud-checker-bd-courier.svg?style=flat-square)](https://packagist.org/packages/azmolla/fraud-checker-bd-courier) [![License](https://img.shields.io/packagist/l/azmolla/fraud-checker-bd-courier.svg?style=flat-square)](https://packagist.org/packages/azmolla/fraud-checker-bd-courier) [![PHP Version Require](https://img.shields.io/packagist/php-v/azmolla/fraud-checker-bd-courier?style=flat-square)](https://packagist.org/packages/azmolla/fraud-checker-bd-courier)

๐Ÿ“Œ Introduction

E-commerce businesses in Bangladesh often face significant losses due to fraudulent orders and high return rates. Fraud Checker BD Courier protects your bottom line by instantly analyzing a customer's track record across major logistics providers (Steadfast, Pathao, and RedX).

By checking a simple phone number, you get immediate insights into a customer's success and cancellation ratios, helping you decide whether to approve, verify, or reject cash-on-delivery (COD) shipments.

๐ŸŽฏ Key Capabilities


๐Ÿ’ป Requirements


๐Ÿ“ฆ Installation

1. Install via Composer:

2. Laravel Users - Publish Configuration File:

(This will create a config/fraud-checker-bd-courier.php file in your application directory.)

(Note: Laravel Auto-Discovery is fully supported. If you are using Laravel 5.4 or older, you will need to manually register the Service Provider and Facade in config/app.php.)


๐Ÿงฉ Setup & Usage

Usage in Laravel

Add credentials to your .env file just like before:

Checking a customer's fraud probability is a one-liner using the provided Facade.

Usage in Pure PHP (or Non-Laravel Frameworks)

Since Version 1.2.0, this package is completely decoupled from Laravel. You can instantiate it using the FraudCheckerConfig class:

๐Ÿ“ˆ Structural Response Example

The package returns a highly structured array indicating individual and aggregated network metrics:


๐Ÿ› ๏ธ Advanced Usage (SOLID Design)

For granular control, the package is architected using SOLID principles. Every courier class adheres to Azmolla\FraudCheckerBdCourier\Contracts\CourierServiceInterface, guaranteeing a uniform getDeliveryStats(string $phoneNumber): array signature.

Instantiating Individual Services

If you only need to run analytics against a single courier, avoid the Facade overhead and use the specific service classes directly:


๐Ÿ“ฑ Phone Validation Helper

Numbers are strictly validated against ^01[3-9][0-9]{8}$ to prevent unnecessary API failures.

You can manually trigger this validation check:


๐Ÿงช Testing

The package includes an extensive test suite built with orchestra/testbench and phpunit. API calls are safely mocked, meaning you do not need live .env credentials to confidently run tests locally.


๐Ÿ™ Acknowledgments

Special thanks to S. Ahmad for the initial inspiration and discovering the API endpoints.


โ€๐Ÿ’ป Created By

Abiruzzaman Molla


โ˜• Support Me

If you find this project useful, you can buy me a coffee!

Buy Me A Coffee


If you find this package helpful in fighting fraudulent orders, please consider starring the repository! โญ I hate arguing. If you have something to contribute or improve, please fork the repository, make your edits, and then submit a pull request.

All versions of fraud-checker-bd-courier with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2.0
guzzlehttp/guzzle Version ^7.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package azmolla/fraud-checker-bd-courier contains the following files

Loading the files please wait ...