PHPackages                             sudtech/sud-gip-auth - 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. sudtech/sud-gip-auth

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

sudtech/sud-gip-auth
====================

PHP implementation of Sud GIP authentication system with JWT support

v1.0.0.1(11mo ago)06MITPHPPHP ^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.3

Since May 20Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/SudTechnology/sud-gip-auth-php)[ Packagist](https://packagist.org/packages/sudtech/sud-gip-auth)[ Docs](https://github.com/SudTechnology/sud-gip-auth-php)[ RSS](/packages/sudtech-sud-gip-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Sud GIP Auth PHP SDK
====================

[](#sud-gip-auth-php-sdk)

Introduction
------------

[](#introduction)

The Sud GIP Auth PHP SDK is a PHP library designed for implementing the Sud GIP authentication system, with support for JWT (JSON Web Token) authentication. This SDK provides functions such as generating authentication codes, server-to-server tokens (SSTokens), verifying tokens, and retrieving user IDs, making it convenient for developers to integrate Sud GIP's authentication services into PHP projects.

Features
--------

[](#features)

- Token Generation: Supports generating authentication codes and SSTokens, with the ability to set expiration durations.
- Token Verification: Verifies the validity of authentication codes and SSTokens.
- User ID Retrieval: Retrieves user IDs using authentication codes or SSTokens.

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

[](#installation)

You can install this SDK using Composer. Run the following command in your project's root directory:

```
    composer require sudtechnology/sud-gip-auth-php
```

Usage
-----

[](#usage)

### Initialization

[](#initialization)

First, you need to instantiate the SudGIPAuth class and pass in your application ID and application secret:

```
