php-graphql

Implement GraphQL features in Symfony-powered PHP applications with schema-first development.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/bpteam/coder --skill php-graphql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-graphql
Source: https://github.com/bpteam/coder/tree/main/.opencode/skills/php-graphql
Command: npx skills add https://github.com/bpteam/coder --skill php-graphql

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Builds GraphQL APIs in PHP with Symfony by providing a schema-first workflow, code generation, and structured resolver implementation.

Core Features & Use Cases

  • Schema-first development approach using flexible-graphql-bundle
  • Auto-generation of resolvers and model scaffolding, with strict typing and DI
  • Guidance for testing, static analysis, and code quality in PHP projects

Quick Start

Define your GraphQL schema and then run the code-generation command to scaffold the necessary resolvers and types.

Frequently Asked Questions about php-graphql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a GraphQL API in Symfony using PHP?

To build a GraphQL API in Symfony, define your schema first and use the schema-first workflow to scaffold resolvers and models. This approach generates strictly typed PHP classes via dependency injection, streamlining API development.

What is schema-first GraphQL development in PHP?

Schema-first GraphQL development in PHP involves defining the GraphQL type definitions before writing logic. A code-generation command then scaffolds the necessary resolvers and model structures automatically based on that defined schema.

Can I enforce strict types and PHPStan checks when generating GraphQL resolvers?

Yes, you can enforce strict types and PHPStan checks during GraphQL resolver generation. The delivery process integrates static analysis and PSR standards to ensure generated code meets strict quality and type-safety requirements.

Does this GraphQL PHP workflow support dependency injection for resolvers?

Yes, the GraphQL PHP workflow supports dependency injection for resolvers. Auto-generated model scaffolding and resolver classes are structured to integrate seamlessly with Symfony's dependency injection container.

How do I test generated GraphQL resolvers in a Symfony application?

To test generated GraphQL resolvers in a Symfony application, follow the provided testing guidance. This ensures your schema-first implementations and auto-generated scaffolding pass static analysis and functional tests.