PHPackages                             scottbass3/ory-hydra-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. scottbass3/ory-hydra-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

scottbass3/ory-hydra-bundle
===========================

Symfony bundle for ory hydra client

v1.0.0(5mo ago)1150MITPHP

Since Nov 21Pushed 5mo agoCompare

[ Source](https://github.com/scottbass3/OryHydraBundle)[ Packagist](https://packagist.org/packages/scottbass3/ory-hydra-bundle)[ RSS](/packages/scottbass3-ory-hydra-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Ory Hydra Bundle
================

[](#ory-hydra-bundle)

A Symfony bundle to communicate with Ory Hydra API. This bundle is a wrapper for [ory hydra client](https://github.com/ory/hydra-client-php).

Installation
------------

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
composer require scottbass3/ory-hydra-bundle
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

#### Step 1: Download the Bundle

[](#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:

```
composer require scottbass3/ory-hydra-bundle
```

#### Step 2: Enable the 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:

```
// config/bundles.php

return [
    // ...
    Scottbass3\OryHydraBundle\Scottbass3OryHydraBundle::class => ['all' => true],
];
```

Configuration
-------------

[](#configuration)

This is an example configuration, feel free to modify it according to your needs.

```
# config/packages/scottbass3_ory_hydra.yaml

ory_hydra_api:
    access_token: 'change_me'
    username: 'test'
    password: 'change_me'
    host: 'example.com'
    user_agent: 'OpenAPI-Generator/1.0.0/PHP'
    debug: false
    debug_file: 'php://output'
    temp_folder_path: ~
```

Basic Usage
-----------

[](#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();
    }
}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance70

Regular maintenance activity

Popularity13

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

170d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f3f4e2c5192f9a6bb969dc83e8ecb79c49114efff04c940acaa9b47fdd3402d6?d=identicon)[scottbass3](/maintainers/scottbass3)

---

Tags

apiapi-restauthenticationauthorizationfederationhydraidentityoauth2oidcoryory-hydraphpphp8ssosymfonysymfony-bundleapiclientHydraory

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/scottbass3-ory-hydra-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/scottbass3-ory-hydra-bundle/health.svg)](https://phpackages.com/packages/scottbass3-ory-hydra-bundle)
```

###  Alternatives

[ovh/ovh

Wrapper for OVHcloud APIs

3042.6M25](/packages/ovh-ovh)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

251.7M1](/packages/mollie-oauth2-mollie-php)[andalisolutions/oauth2-anaf

Anaf OAuth 2.0 support for the PHP League's OAuth 2.0 Client

194.1k](/packages/andalisolutions-oauth2-anaf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
