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(7mo ago)1190MITPHP

Since Nov 21Pushed 7mo 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 today

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

30

—

LowBetter than 62% of packages

Maintenance63

Regular maintenance activity

Popularity12

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

224d 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

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k13.0M218](/packages/simplesamlphp-simplesamlphp)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

66529.9k11](/packages/web-auth-webauthn-symfony-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)

PHPackages © 2026

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