PHP Package: softonic/guzzle-oauth2-middleware

Guzzle OAuth2 middleware for easy authentication and authorization in PHP applications.

Current Version: 2.1.2
Last Updated: 2025-01-10
PHP Requirement: >=7.1
Dependencies:
guzzle/guzzle
league/oauth2-client
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Guzzle OAuth2 middleware provides seamless integration with OAuth2 for secure API requests. It simplifies the process of authenticating and authorizing users in PHP applications. This middleware streamlines the workflow by handling access tokens and refreshing them automatically, ensuring a secure and efficient communication with OAuth2-protected APIs.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.1.2

Download Download v2.1.2

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/softonic/guzzle-oauth2-middleware/2.1.2/loader.php';
require_once 'libs/guzzle/guzzle/7.10.0/loader.php';
require_once 'libs/league/oauth2-client/{lib_version}/loader.php';

use Softonic\OAuth2\Middleware\OAuth2Middleware;
use GuzzleHttp\Client;
use League\OAuth2\Client\Provider\GenericProvider;

$obj = new OAuth2Middleware();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.