Skip to content

Latest commit

 

History

History
91 lines (65 loc) · 2.99 KB

README.md

File metadata and controls

91 lines (65 loc) · 2.99 KB

Laravel package for porichoybd.

GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.