Download the PHP package identio/php-sdk without Composer

On this page you can find all versions of the php package identio/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-sdk

Identio PHP SDK

Framework-independent PHP client for Identio. The package mirrors the public responsibilities of the Java SDK while remaining usable from Laravel, Symfony and ordinary PHP applications.

Requirements

Installation

Until the package is published, add its Git repository as a Composer VCS repository or use a local path repository.

Client creation

The API token is sent only from the server as Authorization: Bearer .... Never expose it in browser JavaScript.

Registration with email confirmation

Identio creates the account and sends its own OTP confirmation email. Registration usually returns no authenticated token until the confirmation link is processed.

Email login

Other email operations:

Profile values

The configured domain API token can also read and update another user's ordinary profile values from a server-side administrator integration:

The host application must authorize the administrator action. The SDK sends a regular GET or PUT /api/external/domains/{domainId}/users/{userId} request; the role remains an ordinary Identio profile value and is never a system DTO property.

Social login

Supported providers are Google, Yandex, VK and Facebook.

Callback:

SocialFlowManager stores and consumes Identio state, checks the ten-minute flow lifetime, verifies provider matching and preserves the VK PKCE verifier.

When Identio returns registrationRequired = true, collect the mandatory profile values and finish through the one-time registration token:

Laravel registration

Register one singleton in a service provider:

For the social flow, implement Identio\Sdk\Social\SocialSessionStore as a thin adapter over Laravel's session store. PortalKit can then use the same SDK without copying Identio HTTP contracts into the application.

Exceptions

All SDK exceptions inherit from Identio\Sdk\Exception\IdentioException.

An ApiException exposes statusCode and the decoded responseBody. The email login() method returns an AuthResult with isRejected() === true for expected credential/account rejections such as a missing user, invalid password, unconfirmed email or inactive user. The rejection contains its machine-readable code, API message, HTTP statusCode and decoded response body. These expected outcomes do not throw exceptions or produce API error warnings. Transport failures, server failures, invalid domain credentials and other unexpected API responses remain exceptions.

Social-provider update callback verification

The SDK reproduces the Java SDK HMAC-SHA256 signature algorithm:

Tests


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.8
psr/log Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package identio/php-sdk contains the following files

Loading the files please wait ...