arxy / graphql-codegen
Installs: 5 443
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=8.1
- nette/php-generator: ^4.0
- psr/log: ^1.0 | ^2.0 | ^3.0
- webonyx/graphql-php: *
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9
- symfony/validator: ^5.4 | ^6.0
- vimeo/psalm: ^4.23
README
GraphQL Codegen.
Examples:
For that graphql SDL schema you get that code.
Then you can implement auto-generated interfaces, and that will guarantee that you didn't miss anything. Furthemore generated interface is strongly typed (with php natives and PSALM/PHPStan annotations) - so, if you have psalm/phpstan you will have 100% type-safety.