Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwilsson/php-oauth2-client
A modern OAuth2 client library.
https://github.com/jwilsson/php-oauth2-client
oauth2 oauth2-client php
Last synced: 9 days ago
JSON representation
A modern OAuth2 client library.
- Host: GitHub
- URL: https://github.com/jwilsson/php-oauth2-client
- Owner: jwilsson
- License: mit
- Created: 2020-06-16T18:20:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-02T12:29:44.000Z (11 months ago)
- Last Synced: 2024-10-19T19:51:41.420Z (17 days ago)
- Topics: oauth2, oauth2-client, php
- Language: PHP
- Homepage:
- Size: 46.9 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP OAuth2 Client Library
[![Packagist](https://img.shields.io/packagist/v/jwilsson/oauth2-client.svg)](https://packagist.org/packages/jwilsson/oauth2-client)
![build](https://github.com/jwilsson/php-oauth2-client/workflows/build/badge.svg)
[![Coverage Status](https://coveralls.io/repos/jwilsson/php-oauth2-client/badge.svg?branch=main)](https://coveralls.io/r/jwilsson/php-oauth2-client?branch=main)## Features
* Fully supports modern OAuth2 grant types:
* Authorization Code
* Client Credentials
* Proof Key for Code Exchange (PKCE)
* Refresh Token
* Full utilization of PSR-7, PSR-17, and PSR-18.
* Compatible with PSR-4 autoloading.## Requirements
* PHP 8.2 or later.
* A [PSR-18 HTTP client](https://packagist.org/providers/php-http/client-implementation).
* A [PSR-7 implementation](https://packagist.org/providers/psr/http-message-implementation).## Installation
Via Composer:```bash
composer require jwilsson/oauth2-client
```## Usage
See the [`docs`](docs/) folder for complete usage information.## Related
* [AutoRefreshOAuth2TokenPlugin](https://github.com/jwilsson/php-auto-refresh-oauth2-token-plugin) - A HTTPlug plugin to automatically refresh expired OAuth2 access tokens.