Download the PHP package scottbass3/ory-hydra-bundle without Composer
On this page you can find all versions of the php package scottbass3/ory-hydra-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download scottbass3/ory-hydra-bundle
More information about scottbass3/ory-hydra-bundle
Files in scottbass3/ory-hydra-bundle
Package ory-hydra-bundle
Short Description Symfony bundle for ory hydra client
License MIT
Informations about the package ory-hydra-bundle
Ory Hydra Bundle
A Symfony bundle to communicate with Ory Hydra API. This bundle is a wrapper for ory hydra client.
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
Configuration
This is an example configuration, feel free to modify it according to your needs.
Basic Usage
namespace App\Controller;
use Scottbass3\OryHydraBundle\Client;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
class DefaultController extends AbstractController {
public function index(Client $client, string $loginChallenge) {
$loginRequest = $this->client->oauth2->getOAuth2LoginRequest($loginChallenge);
return $loginRequest->getSubject();
}
}All versions of ory-hydra-bundle with dependencies
scottbass3/hydra-client-php-psr-18 Version ^1.0
symfony/http-client Version ^6.0|^7.0
guzzlehttp/promises Version ^2.3