PHP

Version 1.0 Released March 25, 2022 View changelog View on Github

This is a sample seed PHP Web App integrated with ID.me via OAuth 2.0

You will need an ID.me developer account to complete this process

Prerequisites

You must have composer and php installed

Installation

1

Download the code

2

Adjust your client configuration settings by adding the values provided in your developer account

1# .env file
2CLIENT_ID=YOUR_CLIENT_ID
3CLIENT_SECRET=YOUR_CLIENT_SECRET
4REDIRECT_URI=http://localhost:3000/callback.php
5AUTH_URL=https://api.id.me/oauth/authorize
6TOKEN_URL=https://api.id.me/oauth/token
7ATTRIBUTES_URL=https://api.id.me/api/public/v3/attributes.json
3

Run the following to install dependencies and start the server:

$composer install
>php -S localhost:3000
4

View the app at http://localhost:3000