PHP Package: friendsofsymfony/oauth2-php

A PHP library for OAuth2 implementation in Symfony applications, providing secure and seamless authentication functionality.

Current Version: 1.3.1
Last Updated: 2021-04-06
PHP Requirement: ^5.5.9 || ^7.0.8 || ^7.1.3 || ^7.2.5 || ^8.0.0
Dependencies:
symfony/http-foundation
symfony/security-core
league/oauth2-server
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

OAuth2-PHP is a comprehensive library designed to simplify OAuth2 integration within Symfony projects. It enables developers to effortlessly manage user authentication processes, ensuring secure and reliable access control. With OAuth2-PHP, you can streamline authorization workflows, enhance user experience, and boost application security.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.3.1

Download Download v1.3.1

Code Integration Example

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

<?php
// Example from PHPlibraries.com
require_once 'libs/friendsofsymfony/oauth2-php/1.3.1/loader.php';
require_once 'libs/symfony/http-foundation/7.3.4/loader.php';
require_once 'libs/symfony/security-core/7.3.4/loader.php';
require_once 'libs/league/oauth2-server/{lib_version}/loader.php';

use Friendsofsymfony\OAuth2PHP\OAuth2Manager;
use Symfony\Component\HttpFoundation\Request;
use League\OAuth2\Server\AuthorizationServer;

$obj = new OAuth2Manager();
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.