PHPackages                             idmaintzain/myidentitypass - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. idmaintzain/myidentitypass

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

idmaintzain/myidentitypass
==========================

This library will enable you to verify your BVN/NIN/CAC/TIN/PHONE NUMBER

v1.0(4y ago)081MITPHP

Since Jan 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/idmaintzain/myIdentitypassVerification)[ Packagist](https://packagist.org/packages/idmaintzain/myidentitypass)[ RSS](/packages/idmaintzain-myidentitypass/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

**To install**

composer require idmaintzain/myidentitypass

This libray will enable you to verify your BVN/NIN/CAC/TIN/PHONE Number with MyIdentityPass API (Nigeria) You can check myidentity pass official website for more documentation on the api at

Set your constant as below

1. define("URL", "[https://api.myidentitypay.com/api/v1/biometrics/merchant/data/verification/nin\_wo\_face](https://api.myidentitypay.com/api/v1/biometrics/merchant/data/verification/nin_wo_face)"); //(This endpoint can be gotten from Myidentity pass documentation website, and there are different endpoints for different features, eg. the sample endpoint is NIN define("API\_CODE", "exxxxxxxx.xxxxxxxxxxxxxxxxx"); //the API code is x-api-key api key, simple copy it from your dashboard and set it on header on the header

the two parameters can be passed to dataVerification method available in MyIdentityPass Class as below

```
            function dataVerification($number,$url,$api_key){
                    $ch = curl_init();
                    curl_setopt($ch, CURLOPT_URL,$url);
                    curl_setopt($ch, CURLOPT_POST, true);
                    curl_setopt($ch, CURLOPT_POSTFIELDS,
                             http_build_query(array('number' => $number)));
                    curl_setopt($ch, CURLOPT_HTTPHEADER, array(
                        "X-API-Key: $api_key",
                        "Cache-Control: no-cache",
                      ));
                    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                    $server_output = curl_exec($ch);

                    curl_close ($ch);
                    return $server_output;
                }

```

I only use arrayPrinter method to see my response in json

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

1627d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ec54feb4e011af33e9391cb1e4240136496194c34094669ca9a4dd2c6f256a0?d=identicon)[idmaintzain](/maintainers/idmaintzain)

---

Top Contributors

[![idmaintzain](https://avatars.githubusercontent.com/u/10005840?v=4)](https://github.com/idmaintzain "idmaintzain (11 commits)")

### Embed Badge

![Health badge](/badges/idmaintzain-myidentitypass/health.svg)

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

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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