PHPackages                             x-graphql/codegen - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. x-graphql/codegen

ActiveLibrary[API Development](/categories/api)

x-graphql/codegen
=================

Generating PHP code for executing GraphQL

0.1.0(2y ago)133.4k↓26.6%MITPHPPHP &gt;=8.2

Since Mar 27Pushed 2y agoCompare

[ Source](https://github.com/x-graphql/codegen)[ Packagist](https://packagist.org/packages/x-graphql/codegen)[ RSS](/packages/x-graphql-codegen/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

Codegen
=======

[](#codegen)

Generating PHP code for executing GraphQL

[![unit tests](https://github.com/x-graphql/codegen/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/x-graphql/codegen/actions/workflows/unit_tests.yml/badge.svg)[![codecov](https://camo.githubusercontent.com/d2e1e140efe37f4cf4659deeed535b2285272552cc585558229460c1dc458f78/68747470733a2f2f636f6465636f762e696f2f67682f782d6772617068716c2f636f646567656e2f67726170682f62616467652e7376673f746f6b656e3d4959506a6e6742644d4b)](https://codecov.io/gh/x-graphql/codegen)

Getting Started
---------------

[](#getting-started)

Install this package via [Composer](https://getcomposer.org)

```
composer require x-graphql/codegen
```

Usages
------

[](#usages)

After install, you need to generate config file with command bellow:

```
./vendor/bin/x-graphql-codegen x-graphql:codegen:init-config
```

Your config file `x-graphql-codegen.php` initialized look like:

```
