Skip to content

Sample PHP project demonstrating integration with ID.me's OAuth 2.0 API

License

Notifications You must be signed in to change notification settings

IDme/PHP-sample-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ID.me Sample PHP Web App

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

Installation and Setup

In order to run the example you need to have composer and php installed.

You also need to set your client configuration settings in a .env file.

# .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

Run the following to install the dependencies and start the server.

composer install
php -S localhost:3000

Now you can view the app at http://localhost:3000

About

Sample PHP project demonstrating integration with ID.me's OAuth 2.0 API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages