承接 hopekelldev/confirmident 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hopekelldev/confirmident

最新稳定版本:v1.0.0

Composer 安装命令:

composer require hopekelldev/confirmident

包简介

Laravel Confirmident API Integration - A Laravel 10+ package for Confirmident.com.ng

README 文档

README

Latest Version on Packagist Total Downloads Scrutinizer Code Quality PHP Version Laravel Version GuzzleHTTP Version

Laravel Confirmident is a Laravel 10+ package for seamless integration with the Confirmident identity verification API.
It provides a simple Facade-based interface for NIN and identity verification.

✅ Requirements

  • PHP >= 8.1
  • Laravel >= 10.0
  • GuzzleHTTP >= 7.0

📦 Installation

composer require hopekelldev/confirmident

⚙️ Configuration

Publish Configuration File

php artisan vendor:publish --tag=config --provider="HopekellDev\Confirmident\ConfirmidentServiceProvider"

Environment Variables (.env)

Add the following to your .env file:

# Confirmident API Key from your Confirmident account
CONFIRMIDENT_API_KEY=your_api_key_here

# Base URL for Confirmident API (default is production endpoint)
CONFIRMIDENT_API_BASE_URL=https://api.confirmident.com.ng

🚀 Usage Example

Verify NIN Example

use Confirmident;

// Verify a NIN number
$response = Confirmident::verifyNIN('12345678901');

if ($response && $response['status'] === 'success') {
    $data = $response['data'];
    // Process the verified data
} else {
    // Handle failure or error
    $errorMessage = $response['message'] ?? 'Verification failed';
}

📋 Available Methods

Method Description
nin()->searchByNIN($nin) Search NIN details by NIN number
nin()->searchByPhoneNumber($phone) Search NIN details by registered phone number
nin()->searchByDemographicInfo($data) Search NIN by demographic information (firstname, lastname, dob, gender)
bvn()->verification($bvn) Verify BVN and retrieve identity details

📖 Controller Examples

For detailed usage examples and expected API responses, see:
👉 tests/ControllerExample.md

📃 License

Released under the MIT License.
See the LICENSE file for details.

👤 Author

Ezenwa Hopekell

🤝 Contributions & Issues

Feel free to open issues or submit pull requests on GitHub.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-17