承接 scottbass3/ory-hydra-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

scottbass3/ory-hydra-bundle

最新稳定版本:v1.0.0

Composer 安装命令:

composer require scottbass3/ory-hydra-bundle

包简介

Symfony bundle for ory hydra client

README 文档

README

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:

composer require scottbass3/ory-hydra-bundle

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:

composer require scottbass3/ory-hydra-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

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

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();
    }
}

统计信息

  • 总下载量: 88
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-21