monowarfs/porichoybd

Laravel 包用于 porichoybd.gov.bd API 的实现。

v0.0.3 2022-02-06 05:44 UTC

README

GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Laravel 包用于 porichoybd.gov.bd API 的实现。

支持我们

https://api.porichoybd.com/swagger/v1/swagger.json

安装

您可以通过 composer 安装此包

composer require monowarfs/porichoybd

您可以使用以下命令发布配置文件

php artisan vendor:publish --tag="porichoybd-config"

这是已发布的配置文件的内容

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',
            ]
        ]
    ],
];

使用方法

$porichoy = new Monowarfs\PorichoyBD();
echo $porichoy->basic('{
"person_dob": "YYYY-MM-DD",
"national_id": "XXXXXXXXXX",
}');

测试

composer test

变更日志

请参阅 CHANGELOG 了解最近的变化信息。

贡献

请参阅 CONTRIBUTING 了解详细信息。

安全漏洞

请查阅 我们的安全策略 了解如何报告安全漏洞。

鸣谢

许可

MIT 许可协议(MIT)。请参阅 许可文件 了解更多信息。