monowarfs / porichoybd
Laravel package for porichoybd.gov.bd APIs implementation.
Fund package maintenance!
monowarfs
Requires
- php: ^8.0
- illuminate/contracts: ^8.73
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- nunomaduro/collision: ^5.10
- nunomaduro/larastan: ^1.0
- orchestra/testbench: ^6.22
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2025-06-09 12:33:40 UTC
README
Laravel package for porichoybd.gov.bd APIs implementation.
Support us
https://api.porichoybd.com/swagger/v1/swagger.json
Installation
You can install the package via composer:
composer require monowarfs/porichoybd
You can publish the config file with:
php artisan vendor:publish --tag="porichoybd-config"
This is the contents of the published config file:
return [ 'is_live' => env('PORICHOY_GOV_BD_SERVICE_PROD', false), 'api'=> [ 'key' => env('PORICHOY_GOV_BD_API_KEY', ''), 'endpoints' =>[ 'live' => [ 'basic' => 'https://api.porichoybd.com/api/Kyc/nid-person-values', 'basic_n_photo' => 'https://api.porichoybd.com/api/kyc/nid-person', 'basic_n_signature' => 'https://api.porichoybd.com/api/kyc/nid-person', 'autofill' => 'https://api.porichoybd.com/api/kyc/nid-person-values', 'fatchmatch' => 'https://api.porichoybd.com/api/kyc/nid-person-values-image-match', 'birth_registration' => 'https://api.porichoybd.com/api/kyc/verify-birth-registration' ], 'test' => [ 'basic' => 'https://api.porichoybd.com/api/kyc/test-nid-person', 'basic_n_photo' => 'https://api.porichoybd.com/api/kyc/test-nid-person', 'basic_n_signature' => 'https://api.porichoybd.com/api/kyc/test-nid-person', 'autofill' => 'https://api.porichoybd.com/api/kyc/test-nid-person-values', 'fatchmatch' => 'https://api.porichoybd.com/api/kyc/test-nid-person-values-image-match', ] ] ], ];
Usage
$porichoy = new Monowarfs\PorichoyBD(); echo $porichoy->basic('{ "person_dob": "YYYY-MM-DD", "national_id": "XXXXXXXXXX", }');
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.