ruudk/graphql-client-code-generator

Transform GraphQL queries into type-safe, zero-dependency PHP 8.4+ code that just works.


README

GraphQL Client Code Generator for PHP
Transform GraphQL queries into type-safe, zero-dependency PHP 8.4+ code that just works.

Latest Stable Version PHP Version Require Total Downloads License

Stop writing boilerplate. Start shipping features.

Transform your GraphQL queries into blazing-fast, type-safe PHP code with zero runtime dependencies. This isn't just another code generator – it's your secret weapon for building bulletproof GraphQL clients that leverage PHP 8.4's cutting-edge features.

🎯 Why This Changes Everything

Imagine writing a GraphQL query and instantly getting:

  • 100% Type-Safe PHP Classes – No more array['data']['user']['name'] nightmares
  • Zero Runtime Dependencies – Generated code runs standalone, no heavy libraries needed
  • Modern PHP 8.4 Features – Property hooks, readonly properties, and more
  • Intelligent Query Optimization – Automatically removes duplicates and optimizes fragments
  • IDE Autocomplete Heaven – Your editor knows every field, every type, every possibility

📄 License

MIT License – Free to use in your projects! If you're using this in production and finding value, please consider sponsoring to support continued development.

Ready to revolutionize your GraphQL workflow? Install now and join developers who are shipping faster, safer, and with more confidence than ever before.

composer require --dev ruudk/graphql-client-code-generator

Because life's too short for runtime type errors and array key nightmares. 🎯