PHPackages                             phdevutils/banks - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. phdevutils/banks

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phdevutils/banks
================

Philippine bank &amp; e-money registry with SWIFT/BIC codes and InstaPay/PESONet participation flags. Sourced from BSP/PCHC/BancNet/PDIC. Zero-dependency lookup helpers.

v0.1.0(1mo ago)00MITPHPPHP &gt;=8.1

Since Jun 1Pushed 1mo agoCompare

[ Source](https://github.com/kon2raya24/ph-banks-php)[ Packagist](https://packagist.org/packages/phdevutils/banks)[ RSS](/packages/phdevutils-banks/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

phdevutils/banks
================

[](#phdevutilsbanks)

[![Packagist Version](https://camo.githubusercontent.com/d931a7400815aabd4303993e94343afc7b2bc63fd9773a71f5e5186959d65834/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70686465767574696c732f62616e6b733f6c6162656c3d5061636b616769737426636f6c6f723d663238643161266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/phdevutils/banks)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Philippine **bank &amp; e-money registry** for PHP — SWIFT/BIC codes plus **InstaPay / PESONet** participation flags for universal &amp; commercial banks (incl. foreign branches), thrift &amp; rural banks, digital banks, and e-wallets (GCash, Maya, GrabPay, ShopeePay…). PHP companion to the npm package `@ph-dev-utils/banks`.

```
composer require phdevutils/banks
```

Quick start
-----------

[](#quick-start)

```
use PhDevUtils\Banks\Banks;

Banks::findBank('BDO');            // ['name' => 'BDO Unibank, Inc.', 'shortName' => 'BDO', 'swift' => 'BNORPHMM', ...]
Banks::findBank('metrobank')['swift'];        // 'MBTCPHMM'
Banks::findBySwift('UBPHPHMMXXX')['shortName']; // 'UnionBank' (11-char input → 8-char head-office BIC)

Banks::listBanks(['type' => 'ewallet']);       // GCash, Maya, GrabPay, ShopeePay, ...
Banks::listBanks(['instapay' => true]);        // InstaPay participants
Banks::listBanks(['type' => 'universal_commercial', 'foreign' => false]); // domestic U/KBs

Banks::validateBIC('BNORPHMM');    // true
Banks::validateBIC('CITIPHMXV');   // false (9 chars — malformed)
Banks::parseBIC('BOPIPHMM');       // ['institution' => 'BOPI', 'country' => 'PH', 'location' => 'MM', 'branch' => null]
```

API
---

[](#api)

MethodReturns`Banks::listBanks($filter = [])``array` of banks — filter by `type` / `instapay` / `pesonet` / `foreign` / `hasSwift``Banks::findBank($query)`bank `array` or `null` — by SWIFT, exact/partial name, or short name`Banks::findBySwift($code)`bank `array` or `null` — by head-office BIC (8- or 11-char input)`Banks::validateBIC($code)``bool` — ISO 9362 format (8 or 11 chars), case-insensitive`Banks::parseBIC($code)``array{institution,country,location,branch}` or `null``Banks::participationAsOf()``string` — the BSP lists' as-of date (`YYYY-MM-DD`)Each bank array: `name`, `shortName`, `type` (`universal_commercial`/`thrift`/`rural`/`digital`/`ewallet`), `foreign` (bool), `swift` (string|null), `swiftConfidence` (`verified`/`single-source`/null), `instapay` (bool), `instapayReceiverOnly` (bool), `pesonet` (bool).

Data &amp; disclaimer
---------------------

[](#data--disclaimer)

- **InstaPay / PESONet** flags come from the BSP-published ACH participant lists (BancNet &amp; Philippine Clearing House Corporation) and reflect the as-of date — participation changes over time.
- **SWIFT/BIC** codes are head-office codes compiled from public directories. **Always confirm the exact code with the bank or recipient before initiating a wire transfer.** `swiftConfidence` is `verified` (2+ public directories agree) or `single-source`.

Not affiliated with BSP, PDIC, PCHC, BancNet, or SWIFT.

License
-------

[](#license)

MIT.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance89

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

53d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea8892a6c7ba804d12cac27e5927f4b7695d3fc63fec0ecd512d07c117246d6a?d=identicon)[kon2raya24](/maintainers/kon2raya24)

---

Top Contributors

[![kon2raya24](https://avatars.githubusercontent.com/u/167972097?v=4)](https://github.com/kon2raya24 "kon2raya24 (2 commits)")

---

Tags

bankscomposerphilippinesphpMayaBankswiftphilippinesfintechBICgcashinstapaybspfilipinopesonet

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phdevutils-banks/health.svg)

```
[![Health](https://phpackages.com/badges/phdevutils-banks/health.svg)](https://phpackages.com/packages/phdevutils-banks)
```

###  Alternatives

[zhuzhichao/bank-card-info

Get the bank card info

44565.3k](/packages/zhuzhichao-bank-card-info)[citco/carbon

This is a wrapper for nesbot/carbon which also calculates which days are British bank holidays (England &amp; Wales only).

17419.7k5](/packages/citco-carbon)

PHPackages © 2026

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