Download the PHP package verifence/verifence-php without Composer
On this page you can find all versions of the php package verifence/verifence-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download verifence/verifence-php
More information about verifence/verifence-php
Files in verifence/verifence-php
Download verifence/verifence-php
More information about verifence/verifence-php
Files in verifence/verifence-php
Vendor verifence
Package verifence-php
Short Description Official PHP SDK for Verifence — the pre-send firewall for SMS verification.
License MIT
Package verifence-php
Short Description Official PHP SDK for Verifence — the pre-send firewall for SMS verification.
License MIT
Please rate this library. Is it a good library?
Informations about the package verifence-php
Verifence PHP SDK
Official PHP client for Verifence — the pre-send firewall for SMS verification.
Your API key is a secret. Every call is server-to-server. Read the key from an environment variable; never ship it in browser or mobile code.
Usage
Handle a spent quota:
API
| Method | Returns |
|---|---|
check(string $phone, string $clientIp, ?string $userId = null, bool $requireMobile = false): array |
['allow' => bool, 'reason' => ?string, 'detail' => string, 'degraded' => bool, ...] |
confirm(string $clientIp): array |
['recorded' => bool] |
stats(): array |
account totals |
A block is a 200 with allow => false — not an exception. Only bad input, auth,
and quota (429) throw. Point the SDK at a self-hosted instance with the second
constructor argument: new Client($key, 'https://verifence.internal').
All versions of verifence-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-curl Version *
ext-json Version *
ext-curl Version *
ext-json Version *
The package verifence/verifence-php contains the following files
Loading the files please wait ...