mralston/epvs
Composer 安装命令:
composer require mralston/epvs
包简介
Library for working with the Certi-fi EPVS Validation Hub API.
README 文档
README
Introduction
Library for working with the Certi-fi EPVS API.
Config
You may publish the config file as follows:
php artisan vendor:publish --tag=epvs-config
Add the following items to your .env file:
EPVS_TOKEN= #EPVS_ENDPOINT=
EPVS_TOKEN is set up on the EPVS Validation Hub web interface at:
Account Settings > Personal Access Tokens > API Keys > Create Token
EPVS_ENDPOINT may be uncommented and specified if Certi-fi provide a custom API endpoint. In most cases however, the package's default value of https://validationhub.co.uk/api/v1 will be sufficient.
Usage
Here are how the basic functions of the library work:
use Mralston\Epvs\Facades\Epvs; $validations = Epvs::getValidations(); // Illuminate\Support\Collection $validation = Epvs::showValidation(123); // Mralston\Epvs\Models\Validation $newValidation = Epvs::createValidation([ // Mralston\Epvs\Models\Validation 'product_type_id' => 234, 'customer_first_name' => 'Test Michael', 'customer_last_name' => 'Test Burnham', 'customer_phone' => '01234567890', 'customer_email' => 'michael.burnham@starfleet.com', 'installation_address_line_1' => 'USS Discovery', 'installation_address_line_2' => 'null', 'installation_address_line_3' => 'null', 'installation_area_town' => 'Space', 'installation_county' => 'Cosmos', 'installation_postcode' => 'SP4 0CE', 'payment_method_id' => 2, 'finance_lender_id' => 9, 'finance_reference' => '54321-0987', 'finance_term_length' => 36, 'finance_broker_id' => 8, 'insurance_provider_id' => 6, 'ibg_policy_number' => '1234', 'sales_person_name' => 'Gabriel Lorca', 'total_contract_value' => 15123, 'deposit_paid' => 650, 'date_contract_signed' => '2024-05-03', 'file_empty_warning' => 1, 'file_tokens' => [], ]);
Webhooks
Webhook can be configured on your EPVS Validation Hub portal, allowing you to receive real-time updates, for example when the status of a validation changes.
The following Artisan command generates the URL of each webhook, ready to be pasted into the EPVS Validation Hub:
$ php artisan epvs:webhooks
Add a new webhook on your profile page on the EPVS Validation Hub and copy and paste the URL provided.
Whenever the status of a validation changes or another webhook-backed event occurs, a WebhookRecieved event will be fired in your application. The data property contains information about the event. In the case of a VALIDATION_STATUS_UPDATED event, the data property will contain an array similar to the following:
(
[validation_id] => 2
[status_id] => 1
[status_name] => Validated
)
The following statuses are currently defined by the EPVS Validation Hub:
| Status ID | Status Name |
|---|---|
| 1 | Validated |
| 2 | Awaiting Compliance Call |
| 3 | Cancelled Worked |
| 4 | Cancelled Not Worked |
| 5 | Declined |
| 6 | Further Info Requested |
| 7 | Pending |
| 8 | Registered |
Security Vulnerabilities
Please e-mail security vulnerabilities directly to me.
Licence
PDF is open-sourced software licenced under the MIT license.
mralston/epvs 适用场景与选型建议
mralston/epvs 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 338 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 05 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「mralston」 「epvs」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mralston/epvs 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mralston/epvs 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mralston/epvs 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Locks user accounts after a set number of failed login attempts.
Laravel wrapper for generating PDF files using headless Chrome/Chromium
Package for working with IQ CRM.
Library for working with My Utility Genius API.
Alfabank REST API integration
Library for working with Connex CXM dialler.
统计信息
- 总下载量: 338
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-22