The official Authsignal PHP library for server-side applications. Use this SDK to easily integrate Authsignal's multi-factor authentication (MFA) and passwordless features into your PHP backend.
Using Composer:
composer require authsignal/authsignal-phpInitialize the Authsignal client with your secret key from the Authsignal Portal and the API URL for your region.
use Authsignal;
// Initialize the client
Authsignal::setApiSecretKey(getenv('AUTHSIGNAL_SECRET_KEY'));
Authsignal::setApiUrl(getenv('AUTHSIGNAL_API_URL')); // Use region-specific URL| Region | API URL |
|---|---|
| US (Oregon) | https://api.authsignal.com/v1 |
| AU (Sydney) | https://au.api.authsignal.com/v1 |
| EU (Dublin) | https://eu.api.authsignal.com/v1 |
This SDK is licensed under the MIT License.
For more information and advanced usage examples, refer to the official Authsignal Server-Side SDK documentation.
