Skip to content

shshohagh/steadfast-courier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steadfast Courier

A Laravel package for integrating Steadfast Courier API.

Installation

You can install the package via composer:

composer require shshohagh/steadfast-courier

Usage

Publish the configuration file:

php artisan vendor:publish --provider="Shshohagh\SteadfastCourier\SteadfastServiceProvider" --tag="config"

Update your .env file with your Steadfast API credentials:

STEADFAST_BASE_URL=https://portal.steadfast.com.bd/api/v1
STEADFAST_API_KEY=your-api-key
STEADFAST_SECRET_KEY=your-secret-key

Use the Steadfast class to interact with the API.

use Shshohagh\SteadfastCourier\Steadfast;

$steadfast = app(Steadfast::class);
$response = $steadfast->placeOrder($orderData);