overblog/graphiql-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

overblog/graphiql-bundle

最新稳定版本:v1.0.0

Composer 安装命令:

composer require overblog/graphiql-bundle

包简介

Symfony GraphiQLBundle makes possible to render the UI into your symfony project

README 文档

README

This Symfony bundle provides integration of GraphiQL interface to your Symfony application

Build Status Coverage Status Latest Stable Version Latest Unstable Version Total Downloads

Installation

a) Download the bundle

In the project directory:

composer require --dev overblog/graphiql-bundle

Symfony Flex installation

Note If you are using Symfony Standard go to the next section

a) Accept the contrib recipes installation from Symfony Flex

-  WARNING  overblog/graphiql-bundle (0.1): From github.com/symfony/recipes-contrib
    The recipe for this package comes from the "contrib" repository, which is open to community contributions.
    Do you want to execute this recipe?
    [y] Yes
    [n] No
    [a] Yes for all packages, only for the current installation session
    [p] Yes permanently, never ask again for this project
    (defaults to n):

b) In case you don't have twig

In the project directory:

composer require twig

If you are using twig ONLY for graphiql you might want to use --dev during composer require

Symfony Standard installation

a) Enable the bundle in the 'dev' section

// in app/AppKernel.php
class AppKernel extends Kernel
{
    // ...

    public function registerBundles()
    {
        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            // ...
            $bundles[] = new Overblog\GraphiQLBundle\OverblogGraphiQLBundle();
        }
    }
}

b) Enable GraphiQL endpoint

# in app/config/routing_dev.yml
overblog_graphiql_endpoint:
    resource: "@OverblogGraphiQLBundle/Resources/config/routing.xml"

Done

It's done now, navigate to /graphiql in your project url

More

Community

Contributing

统计信息

  • 总下载量: 5.6M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 77
  • 点击次数: 1
  • 依赖项目数: 22
  • 推荐数: 2

GitHub 信息

  • Stars: 76
  • Watchers: 7
  • Forks: 25
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04