# PHP provider
This is the official DocCheck OAuth2 provider for PHP. You can browse the code on GitHub or install the package from Packagist. It serves as a starting point and code template to integrate the OAuth2 Authorization Code Flow with the DocCheck Login service.
# GitHub repository
The DocCheck OAuth2 provider is available on GitHub: DocCheck OAuth2 Provider (v2.1.1) (opens new window)
The repository contains:
- the full PHP source (
DocCheck\OAuth2\Client\Provider\DocCheck) - predefined endpoints for authorization, access token, and user data (resource owner)
- implementations for the OAuth2 Authorization Code Flow
- tests and example usage
# Composer package (Packagist)
The official Composer package is published here:
doccheck/oauth2-doccheck (Packagist, v2.1.1) (opens new window)
Install via Composer:
composer require doccheck/oauth2-doccheck
This will pull in league/oauth2-client as a dependency.
# Requirements
# PHP
- PHP >= 7.2 (since provider version 1.0.1)
# Dependencies
- league/oauth2-client ^2.0
# Other
- Session management (implemented in your application)
- HTTPS for secure communication with DocCheck servers