PHPackages                             dotlines-io/ghoori - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. dotlines-io/ghoori

ActiveLibrary[Payment Processing](/categories/payments)

dotlines-io/ghoori
==================

This is the core package for Ghoori Payment integration. Both for OnDemand and Subscription Payment Integration

1.0.9(4y ago)09173MITPHPPHP ^7.4|^8.0

Since May 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dotlines-io/ghoori)[ Packagist](https://packagist.org/packages/dotlines-io/ghoori)[ Docs](https://github.com/dotlines-io/ghoori)[ RSS](/packages/dotlines-io-ghoori/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (7)Versions (11)Used By (3)

Ghoori Package
==============

[](#ghoori-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a33d3c5086744243e361768ffcfc27d5a7e8e4b13a3109c5b335e00712d7d2b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f746c696e65732d696f2f67686f6f72692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dotlines-io/ghoori)[![Tests](https://github.com/dotlines-io/ghoori/actions/workflows/run-tests.yml/badge.svg)](https://github.com/dotlines-io/ghoori/actions/workflows/run-tests.yml)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5167277f795bdfa1f1b7148731d24c0f5a3afd66a05608924f4c15759ea2f5c3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f646f746c696e65732d696f2f67686f6f72692f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/dotlines-io/ghoori/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Psalm](https://github.com/dotlines-io/ghoori/actions/workflows/psalm.yml/badge.svg)](https://github.com/dotlines-io/ghoori/actions/workflows/psalm.yml)[![Total Downloads](https://camo.githubusercontent.com/a94be00d4eea84ad6dacdcd62a9c8e32fa1f2ac63a8fcf13e867cf388882d88b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646f746c696e65732d696f2f67686f6f72692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dotlines-io/ghoori)[![Total Downloads](https://camo.githubusercontent.com/1fcaee67da48b2102145db3d60bc9910ecb152c29ec68bb53c944a3d40af0e36/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f646f746c696e65732d696f2f67686f6f7269)](https://packagist.org/packages/dotlines-io/ghoori)

---

This composer package can be used for Payment API Authentication &amp; Authorization with [Ghoori](http://ghoori.com.bd) Platform. For the credentials, please contact with  or call 8809612332215

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require dotlines-io/ghoori
```

Usage
-----

[](#usage)

```
/**
 * ******************************************************
 * ******************* Token Fetching *******************
 * *********** Contact Ghoori For Credentials ***********
 * ******************************************************
 */
$tokenUrl = 'https:///oauth/token';
$username = '';
$password = '';
$clientID = '';
$clientSecret = '';

$accessTokenRequest = \Dotlines\Ghoori\AccessTokenRequest::getInstance($tokenUrl, $username, $password, $clientID, $clientSecret);
$tokenResponse = $accessTokenRequest->send();
echo json_encode($tokenResponse) . '';

/**
 * Access Token Request Response looks like below:
 * {
 *  "token_type": "Bearer",
 *  "expires_in": 3600,
 *  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdW.....",
 *  "refresh_token": "def50200284b2371cad76b4d2a4e24746c44fd6a322....."
 * }
 */

/**
 * Access Token can be cached and reused for 1 hour
 * Before the end of accessToken lifetime every hour
 * you can use the refresh token to fetch new accessToken & refreshToken
 */
$accessToken = $tokenResponse['access_token'];
$refreshToken = $tokenResponse['refresh_token'];

/**
 * ******************************************************
 * ******************* Refresh Token *******************
 * ******************************************************
 */
$refreshTokenRequest = \Dotlines\Ghoori\RefreshTokenRequest::getInstance($tokenUrl, $accessToken, $clientID, $clientSecret, $refreshToken);
$tokenResponse = $refreshTokenRequest->send();
echo json_encode($tokenResponse) . '';

/**
 * Refresh Token Request Response looks like below:
 * {
 *  "token_type": "Bearer",
 *  "expires_in": 3600,
 *  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdW.....",
 *  "refresh_token": "def50200284b2371cad76b4d2a4e24746c44fd6a322....."
 * }
 */
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [TareqMahbub](https://github.com/TareqMahbub)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

10

Last Release

1816d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.0.4PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/59867500f5299217fec76ab7e0b813ffcb1e63a4b197ba8f41dd49b2d4df48c3?d=identicon)[TareqMahbub](/maintainers/TareqMahbub)

---

Top Contributors

[![TareqMahbub](https://avatars.githubusercontent.com/u/1318776?v=4)](https://github.com/TareqMahbub "TareqMahbub (60 commits)")[![Mritunjoy71](https://avatars.githubusercontent.com/u/32269388?v=4)](https://github.com/Mritunjoy71 "Mritunjoy71 (11 commits)")[![afsara-ben](https://avatars.githubusercontent.com/u/44926095?v=4)](https://github.com/afsara-ben "afsara-ben (4 commits)")

---

Tags

dotlines-ioghoori

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dotlines-io-ghoori/health.svg)

```
[![Health](https://phpackages.com/badges/dotlines-io-ghoori/health.svg)](https://phpackages.com/packages/dotlines-io-ghoori)
```

###  Alternatives

[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
