LaravelPackages.net
Acme Inc.
Toggle sidebar
monowarfs/porichoybd

Laravel package for porichoybd.gov.bd APIs implementation.

14
0
v0.0.3
About monowarfs/porichoybd

monowarfs/porichoybd is a Laravel package for laravel package for porichoybd.gov.bd apis implementation.. It currently has 0 GitHub stars and 14 downloads on Packagist (latest version v0.0.3). Install it with composer require monowarfs/porichoybd. Discover more Laravel packages by monowarfs or browse all Laravel packages to compare alternatives.

Last updated

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.

Comments