Download the PHP package corbado/php-sdk without Composer
On this page you can find all versions of the php package corbado/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download corbado/php-sdk
More information about corbado/php-sdk
Files in corbado/php-sdk
Package php-sdk
Short Description Add passkeys to your PHP application with the Corbado PHP SDK.
License MIT
Homepage https://www.corbado.com/passkeys/php
Informations about the package php-sdk
Corbado PHP SDK
The Corbado PHP SDK provides convenient access to the Corbado Backend API from applications written in the PHP language.
:warning: The Corbado PHP SDK is commonly referred to as a private client, specifically designed for usage within closed backend applications. This particular SDK should exclusively be utilized in such environments, as it is crucial to ensure that the API secret remains strictly confidential and is never shared.
:rocket: Support & Feedback
:rocket: Getting started
Requirements
- PHP 8.0 or later
- Composer
Installation
Use the following command to install the Corbado PHP SDK:
Usage
To create a Corbado PHP SDK instance you need to provide your Project ID
, API secret
, Frontend API URL
and Backend API URL
which can be found at the Developer Panel.
Examples
A list of examples can be found in the integration tests here.
:hammer_and_wrench: Services
The Corbado PHP SDK provides the following services:
sessions
for managing sessionsusers
for managing users (examples)identifiers
for managing identifiers (examples)
To use a specific service, such as sessions
, invoke it as shown below:
:books: Advanced
Error handling
The Corbado PHP SDK throws exceptions for all errors. The following exceptions are thrown:
AssertException
for failed assertions (client side)ConfigException
for configuration errors (client side)ValidationException
for validation errors (client side)ServerException
for server errors (server side)StandardException
for everything else (client side)
If the Backend API returns an HTTP status code other than 200, the Corbado PHP SDK throws a ServerException
. The ServerException
class provides convenient methods to access all important data:
:speech_balloon: Support & Feedback
Report an issue
If you encounter any bugs or have suggestions, please open an issue.
Slack channel
Join our Slack channel to discuss questions or ideas with the Corbado team and other developers.
You can also reach out to us via email at [email protected].
Vulnerability reporting
Please report suspected security vulnerabilities in private to [email protected]. Please do NOT create publicly viewable issues for suspected security vulnerabilities.
All versions of php-sdk with dependencies
psr/cache Version ^3.0
firebase/php-jwt Version ^6.4
ext-openssl Version *