PHPackages                             mosip/php-auth-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. mosip/php-auth-sdk

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

mosip/php-auth-sdk
==================

PHP SDK for MOSIP Authentication

v1.0.1(5mo ago)04MPL-2.0PHPPHP &gt;=7.4

Since Nov 19Pushed 5mo agoCompare

[ Source](https://github.com/abdulbathish/php-auth-sdk)[ Packagist](https://packagist.org/packages/mosip/php-auth-sdk)[ RSS](/packages/mosip-php-auth-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

MOSIP Authentication SDK for PHP
================================

[](#mosip-authentication-sdk-for-php)

PHP SDK for MOSIP (Modular Open Source Identity Platform) Authentication Service. This library provides a simple interface to interact with MOSIP's authentication APIs, enabling demographic authentication, KYC verification, and OTP generation.

Features
--------

[](#features)

- **Demographic Authentication** - Authenticate individuals using demographic data (name, DOB, gender, etc.)
- **KYC Authentication** - Know Your Customer verification with demographic and biometric data
- **OTP Generation** - Generate OTP via email or phone
- **Response Decryption** - Automatically decrypt and parse API responses
- **JWS Signing** - Secure request signing using RS256
- **Encryption** - RSA/OAEP and AES-256-GCM encryption support

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- OpenSSL extension
- JSON extension
- cURL extension

Installation
------------

[](#installation)

### Install via Composer (Recommended)

[](#install-via-composer-recommended)

The package is available on [Packagist](https://packagist.org/packages/mosip/php-auth-sdk):

```
composer require mosip/php-auth-sdk
```

### Manual Installation

[](#manual-installation)

1. Clone this repository:

```
git clone https://github.com/abdulbathish/php-auth-sdk.git
cd php-auth-sdk
```

2. Install dependencies:

```
composer install
```

Configuration
-------------

[](#configuration)

Create a `config.php` file in the root directory:

```
