PHP Package: softonic/guzzle-oauth2-middleware
Guzzle OAuth2 middleware for easy authentication and authorization in PHP applications.
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.
Download Latest Version: 2.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.