ruudk / graphql-client-code-generator
Transform GraphQL queries into type-safe, zero-dependency PHP 8.4+ code that just works.
Fund package maintenance!
ruudk
Requires
- php: ^8.4
- ruudk/code-generator: ^0.3.0
- symfony/console: ^7.3
- symfony/filesystem: ^7.3
- symfony/finder: ^7.3
- symfony/string: ^7.3
- symfony/type-info: ^7.3
- webmozart/assert: ^1.11
- webonyx/graphql-php: ^15.24.0
Requires (Dev)
- captainhook/captainhook-phar: ^5.25
- ergebnis/composer-normalize: ^2.47
- friendsofphp/php-cs-fixer: ^3.85
- guzzlehttp/psr7: ^2.7
- php-http/discovery: ^1.20
- php-http/guzzle7-adapter: ^1.1
- php-http/message: ^1.16
- php-http/mock-client: ^1.6
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpstan/phpstan-webmozart-assert: ^2.0
- phpunit/phpunit: ^12.3
- psr/http-client: ^1.0
- psr/http-message: ^2.0
- shipmonk/composer-dependency-analyser: ^1.8
- shipmonk/dead-code-detector: ^0.13.2
- staabm/phpstan-todo-by: ^0.3.0
- symfony/dotenv: ^7.3
- symfony/var-dumper: ^7.3
- ticketswap/php-cs-fixer-config: ^1.0
- ticketswap/phpstan-error-formatter: ^1.1
This package is auto-updated.
Last update: 2025-08-22 14:10:43 UTC
README
GraphQL Client Code Generator for PHP
Transform GraphQL queries into type-safe, zero-dependency PHP 8.4+ code that just works.
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. 🎯