PHPackages                             mah-shamim/city-bank-api - 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. mah-shamim/city-bank-api

ActiveLibrary[Payment Processing](/categories/payments)

mah-shamim/city-bank-api
========================

This APIs is used to initiate payment request from Mobile client/others exchange house.

0.0.3(3y ago)1251[1 PRs](https://github.com/mah-shamim/city-bank-api/pulls)MITPHPPHP ^7.2|^8.0

Since Aug 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mah-shamim/city-bank-api)[ Packagist](https://packagist.org/packages/mah-shamim/city-bank-api)[ Docs](https://mah-shamim.github.io/city-bank-api/)[ RSS](/packages/mah-shamim-city-bank-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (7)Used By (0)

City Bank Remittance API
========================

[](#city-bank-remittance-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e9f698e60bb0822313a1e4d2f5181c1ee68df1bc60426ef3ad13dd34434e9d3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61682d7368616d696d2f636974792d62616e6b2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mah-shamim/city-bank-api)[![GitHub Tests Action Status](https://camo.githubusercontent.com/1b4bbdf5cdd6d4d3ad93f80903aad1af7e2046cbee3861f1e6cdff4b1d2a9ef9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d61682d7368616d696d2f636974792d62616e6b2d6170692f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/mah-shamim/city-bank-api/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/17b146b1d4789448cc7c6a9a790c453770d20b6042baee5b28c3cf6345898287/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d61682d7368616d696d2f636974792d62616e6b2d6170692f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/mah-shamim/city-bank-api/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3b5fe548a80b72840f24e614f813a5e47430ae93d4c90685d11c93ceafe9a710/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61682d7368616d696d2f636974792d62616e6b2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mah-shamim/city-bank-api)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

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

[](#installation)

You can install the package via composer:

```
composer require mah-shamim/city-bank-api
```

Usage
-----

[](#usage)

### For Non-Laravel Projects

[](#for-non-laravel-projects)

```
$config = [
        'mode' => 'sandbox',
        'username' => 'CITY_BANK_API_USERNAME',
        'password' => 'CITY_BANK_API_PASSWORD',
        'company' => 'CITY_BANK_EXCHANGE_COMPANY',
        'base_url' => 'https://nrbms.thecitybank.com',
        'api_url' => '/nrb_api_test/dynamicApi.php?wsdl',
    ];

$cityBank = new \MahShamim\CityBank($config);
```

### For Laravel &amp; Lumen

[](#for-laravel--lumen)

You can set up whole configuration using this command

```
php artisan city-bank:install
```

OR

You can publish the config file with(Laravel &amp; Lumen):

```
php artisan vendor:publish --tag="city-bank-config"
```

This is the contents of the published config file:

```
return [
    'mode' => env('CITY_BANK_API_MODE', \MahShamim\CityBank\Config::MODE_SANDBOX), //sandbox, live
    'sandbox' => [
        'mode' => \MahShamim\CityBank\Config::MODE_SANDBOX,
        'username' => env('CITY_BANK_API_USERNAME'),
        'password' => env('CITY_BANK_API_PASSWORD'),
        'company' => env('CITY_BANK_EXCHANGE_COMPANY'),
        'base_url' => 'https://nrbms.thecitybank.com/nrb_api_test',
        'api_url' => '/dynamicApi.php?wsdl',
    ],
    'live' => [
        'mode' => \MahShamim\CityBank\Config::MODE_LIVE,
        'username' => env('CITY_BANK_API_USERNAME'),
        'password' => env('CITY_BANK_API_PASSWORD'),
        'company' => env('CITY_BANK_EXCHANGE_COMPANY'),
        'base_url' => 'https://nrbms.thecitybank.com',
        'api_url' => '/dynamicApi.php?wsdl',
    ],
];
```

Changelog
---------

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/mah-shamim/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [MD ARIFUL HAQUE](https://github.com/mah-shamim)
- [Mohammad Hafijul Islam](https://github.com/hafijul233)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Support us
----------

[](#support-us)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

[![Alt](https://camo.githubusercontent.com/7f98777666faea018cc17d26fe24311a677253d3a3afa3148387c47ea4a888aa/68747470733a2f2f7265706f62656174732e6178696f6d2e636f2f6170692f656d6265642f306637333761306333316261626134633564393366363166663839303836373266663830623535312e737667 "Repobeats analytics image")](https://camo.githubusercontent.com/7f98777666faea018cc17d26fe24311a677253d3a3afa3148387c47ea4a888aa/68747470733a2f2f7265706f62656174732e6178696f6d2e636f2f6170692f656d6265642f306637333761306333316261626134633564393366363166663839303836373266663830623535312e737667)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.7% 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 ~9 days

Total

3

Last Release

1351d ago

PHP version history (2 changes)0.0.1PHP ^8.1

0.0.2PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/870a352ea25df3ba3fb9443653badfb195324776da50cef0d8c730475f7681b1?d=identicon)[hafijul233](/maintainers/hafijul233)

![](https://www.gravatar.com/avatar/1568956a50453dcd154da724a04fb02cd1dcd703e93f771b0926430eb62771e1?d=identicon)[mah.shamim](/maintainers/mah.shamim)

---

Top Contributors

[![hafijul233](https://avatars.githubusercontent.com/u/24684511?v=4)](https://github.com/hafijul233 "hafijul233 (92 commits)")[![mah-shamim](https://avatars.githubusercontent.com/u/15815972?v=4)](https://github.com/mah-shamim "mah-shamim (48 commits)")

---

Tags

hacktoberfestlaravellumenpaymentexchangeBank APImah-shamimhafijul233city-bank

### Embed Badge

![Health badge](/badges/mah-shamim-city-bank-api/health.svg)

```
[![Health](https://phpackages.com/badges/mah-shamim-city-bank-api/health.svg)](https://phpackages.com/packages/mah-shamim-city-bank-api)
```

###  Alternatives

[021/laravel-wallet

Reliable and flexible wallet system for Laravel

2785.2k](/packages/021-laravel-wallet)[omalizadeh/laravel-multi-payment

A driver-based laravel package for online payments via multiple gateways

491.1k](/packages/omalizadeh-laravel-multi-payment)[parsisolution/gateway

A Laravel package for connecting to all Iraninan payment gateways

231.7k](/packages/parsisolution-gateway)

PHPackages © 2026

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