PHPackages                             affinidi-tdk/affinidi-tdk-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. affinidi-tdk/affinidi-tdk-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

affinidi-tdk/affinidi-tdk-php
=============================

Affinidi Trust Developement Kit

v1.22.1(3w ago)2458[5 PRs](https://github.com/affinidi/affinidi-tdk-php/pulls)Apache-2.0PHPPHP ^7.4 || ^8.0CI passing

Since Dec 11Pushed 2d ago2 watchersCompare

[ Source](https://github.com/affinidi/affinidi-tdk-php)[ Packagist](https://packagist.org/packages/affinidi-tdk/affinidi-tdk-php)[ RSS](/packages/affinidi-tdk-affinidi-tdk-php/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (27)Versions (38)Used By (0)

Affinidi Trust Development Kit (Affinidi TDK)
=============================================

[](#affinidi-trust-development-kit-affinidi-tdk)

[![All Contributors](https://camo.githubusercontent.com/6639f2ea5527f4e3f1af2ec8d6e72c1384242c492b7787833429d3f3c2188d79/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f616c6c5f636f6e7472696275746f72732d31322d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](#contributors-)

The Affinidi Trust Development Kit (Affinidi TDK) is a modern interface that allows you to easily manage and integrate [Affinidi Elements](https://www.affinidi.com/product/affinidi-elements) and [Frameworks](https://www.affinidi.com/developer#lota-framework) into your application. It minimises dependencies and enables developers seamless entry into the [Affinidi Trust Network (ATN)](https://www.affinidi.com/get-started).

How do I use Affinidi TDK?
--------------------------

[](#how-do-i-use-affinidi-tdk)

The Affinidi TDK for PHP is published on [packagist.org](https://packagist.org/packages/affinidi-tdk/affinidi-tdk-php) and provides the following libraries:

- [Clients](src/Clients), which offer methods to access Affinidi Elements services like Credential Issuance, Credential Verification, and Login Configurations, among others.
- [AuthProvider](src/AuthProvider/), a library that provides a method to authenticate Personal Access Tokens (PATs) and generates access token to call clients and access the Affinidi Elements services.
- [Commons](src/Common/), a list of libraries that provides common methods like generation of claim and share links for Credential Issuance and Affinidi Iota Framework.

Each module has its own README that you can check to better understand how to integrate it into your application.

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

[](#requirements)

- PHP version 7.4 or higher.
- [Composer](https://getcomposer.org/download/) package manager.

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

[](#installation)

### Setting up a New Project

[](#setting-up-a-new-project)

If you're starting a new project, first create a new directory and initialise it.

```
mkdir my-affinidi-project
cd my-affinidi-project
composer init
```

Install the Affinidi TDK via Composer.

```
composer require affinidi-tdk/affinidi-tdk-php
```

Quick Start
-----------

[](#quick-start)

Here's a basic example of using the TDK to list wallets:

```
