Skip to main content
Official PHP SDK for Relaybase.

GitHub Repository

Source, issues, and releases for the Relaybase PHP SDK.

Requirements

  • PHP >= 8.1
  • cURL extension enabled

Installation

Authentication

Get your API key from the Relaybase dashboard and pass it to the constructor:

Usage

Vanilla PHP

Laravel

Verification modes

See Validation Results for how these map to the API’s mode field.

Response fields

verifySingle() returns a result object with:

Error handling

Errors from the API are thrown as RelaybaseAPIError:

Roadmap

Bulk validation support for validating multiple emails in a single call is in progress and will be added in a future release.