For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Contact UsSign In
HomeIntegrationsGuidesBrand Assets
HomeIntegrationsGuidesBrand Assets
  • Supported Applications
    • Overview
    • Shopify
    • Azure
  • Configurations
    • Overview
    • Configuration Standards
  • Deploy and Monitor
    • Overview
    • Quality Assurance Testing
    • Launching in Production
    • Monitoring Performance
    • Conversion Tracking
    • Help
  • Sample Code
    • Overview
      • Python
      • PHP
      • Ruby
      • Ruby on Rails
      • React Axios
      • JavaScript
      • jQuery
      • OIDC Ruby
  • Terms of Service
    • Developers
    • Partners
LogoLogo
Contact UsSign In
On this page
  • Prerequisites
  • Installation
Sample CodeOptions

PHP

Was this page helpful?
Edit this page
Previous

Ruby

Next
Built with

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