Download the PHP package mralston/epvs without Composer
On this page you can find all versions of the php package mralston/epvs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mralston/epvs
More information about mralston/epvs
Files in mralston/epvs
Package epvs
Short Description Library for working with the Certi-fi EPVS Validation Hub API.
License MIT
Homepage https://github.com/mralston/epvs
Informations about the package epvs
Certi-fi EPVS
Introduction
Library for working with the Certi-fi EPVS API.
Config
You may publish the config file as follows:
Add the following items to your .env file:
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:
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:
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:
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.
All versions of epvs with dependencies
illuminate/http Version ^8.0|^9.0|^10.0|^11.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
laravel/sanctum Version ^4.0