Download the PHP package hopekelldev/laravel-danarewa without Composer
On this page you can find all versions of the php package hopekelldev/laravel-danarewa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hopekelldev/laravel-danarewa
More information about hopekelldev/laravel-danarewa
Files in hopekelldev/laravel-danarewa
Package laravel-danarewa
Short Description Laravel wrapper for DanArewaTech API
License MIT
Informations about the package laravel-danarewa
Laravel DanArewa
Laravel DanArewa is a Laravel 10+ package that provides a clean wrapper around the DanArewaTech identity verification API. It offers a Facade-based interface for verification, clearance, validation, and user wallet inquiries.
Requirements
- PHP >= 8.0
- Laravel >= 10.0
- GuzzleHTTP >= 7.0
Installation
Install the package via Composer:
Configuration
Publish Configuration File
Run the following command to publish the configuration file:
Environment Variables
Add the following to your .env file:
Usage Example
Here’s how to use the package to verify an NIN:
Available Methods
| Category | Method | Description |
|---|---|---|
| Verifications | verifications()->ninVerification($nin) |
Verify NIN by number |
| Verifications | verifications()->phoneVerification($phone) |
Verify NIN by registered phone |
| Verifications | verifications()->bvnVerification($bvn) |
Verify BVN number |
| Verifications | verifications()->trackingIdVerification($trackingId) |
Verify by Tracking ID |
| IPE Clearance | ipeClearance()->ipeClearance($trackingID) |
Instant IPE Clearance |
| IPE Clearance | ipeClearance()->ipeClearanceStatus($trackingID) |
Check IPE status |
| Validation | validation()->validate($nin) |
Validate ID |
| Validation | validation()->validateStatus($nin) |
Check validation status |
| User Wallet | userDetails()->walletBalance() |
Get user wallet balance |
Controller Usage Example
Here’s an example of how to use the package in a Laravel controller:
License
This package is released under the MIT License.
Author
Ezenwa Hopekell
- GitHub: HopekellDev
- Email: [email protected]
- Message Hopekell on Whatsapp
Contributions & Issues
Found a bug or have a feature request? Feel free to open an issue or submit a pull request on GitHub.