lastdragon-ru/graphql-printer
GraphQL printer for PHP: turns a GraphQL AST/document into well-formatted GraphQL text with configurable indentation and style. Useful for debugging, logging, code generation, and producing consistent query/schema output in Laravel or any PHP app.
README.md or Swagger-like docs.Look Here If:
Look Elsewhere If:
For Executives: "This package lets us automate and customize GraphQL schema documentation—saving dev time and reducing errors. For example, we can generate clean, filtered schema snippets for our mobile team to debug queries faster, or publish only the public API surface for partners. It’s a low-cost way to improve developer productivity and API maintainability, with no vendor lock-in (MIT license)."
For Engineers: *"Need to ship schema docs without manual work? This package lets you:
For Developers:
*"Tired of graphql introspection dumping 500 lines of unused types? This package lets you:
// Print only types used in a specific query
SchemaPrinter::printUsedTypes($queryAst);
// Format schema with your team’s preferred style
SchemaPrinter::printAllTypes(indent: 2, showDirectives: false);
It’s like jq for GraphQL schemas—filter, format, and focus on what matters."*
How can I help you explore Laravel packages today?