Skip to navigation

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

# .env file
CLIENT_ID=YOUR_CLIENT_ID
CLIENT_SECRET=YOUR_CLIENT_SECRET
REDIRECT_URI=http://localhost:3000/callback.php
AUTH_URL=https://api.id.me/oauth/authorize
TOKEN_URL=https://api.id.me/oauth/token
ATTRIBUTES_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