PHPackages                             kinoheld/graphql-commons - 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. kinoheld/graphql-commons

ActiveLibrary[API Development](/categories/api)

kinoheld/graphql-commons
========================

Common helper classes for webonyx/graphql-php endpoints.

1.5.0(6y ago)0191MITPHP

Since Sep 13Pushed 6y ago4 watchersCompare

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

READMEChangelog (6)Dependencies (1)Versions (8)Used By (0)

kinoheld/graphql-commons
========================

[](#kinoheldgraphql-commons)

Installation
------------

[](#installation)

Via composer:

```
composer require kinoheld/graphql-commons

```

Provided classes
----------------

[](#provided-classes)

### kinoheld\\GraphQLCommons\\Context\\GenericContext

[](#kinoheldgraphqlcommonscontextgenericcontext)

Generic key/value context to store/retrieve information between types.

```
// Pass GenericContext to GraphQL::executeQuery
$context = new \kinoheld\GraphQLCommons\Context\GenericContext();
$result = \GraphQL\GraphQL::executeQuery($schema, $source, $rootValue, $context, $variableValues);

```

```
// Set context value in resolve method
function($value, $args, GenericContext $context, $info) {
  $context->addData('some-key', 'some-value');
}

```

```
// Get context value in resolve method
function($value, $args, GenericContext $context, $info) {
  $context->getData('some-key'); // 'some-value'
}

```

### kinoheld\\GraphQLCommons\\Registry\\TypeRegistry

[](#kinoheldgraphqlcommonsregistrytyperegistry)

In-memory type registry to load types only once.

```
// Load MyCustomType into registry and set as field type
$config['fields']['myField']['type'] = \kinoheld\GraphQLCommons\Registry\TypeRegistry::getType('Path\To\MyCustomType');

```

### kinoheld\\GraphQLCommons\\Type\\Scalar\\JsonType

[](#kinoheldgraphqlcommonstypescalarjsontype)

JSON type for input parsing and output serialization of JSON strings.

```
$config['fields']['myJsonField']['type'] = \kinoheld\GraphQLCommons\Registry\TypeRegistry::getType('kinoheld\GraphQLCommons\Type\Scalar\JsonType');

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~88 days

Recently: every ~35 days

Total

7

Last Release

2263d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b2811b0fe31debebd58f3a5f6ebf169f0565e0aed7d3b23a46af128d5f1f2ab7?d=identicon)[thekonz](/maintainers/thekonz)

![](https://www.gravatar.com/avatar/6c27417876366cf0c71ef0e70ef808713ea5f79f8f02a63c14b103d2c56bc083?d=identicon)[lhelwingkh](/maintainers/lhelwingkh)

---

Top Contributors

[![bkonetzny](https://avatars.githubusercontent.com/u/5451122?v=4)](https://github.com/bkonetzny "bkonetzny (4 commits)")[![thekonz](https://avatars.githubusercontent.com/u/2700089?v=4)](https://github.com/thekonz "thekonz (1 commits)")

---

Tags

graphql

### Embed Badge

![Health badge](/badges/kinoheld-graphql-commons/health.svg)

```
[![Health](https://phpackages.com/badges/kinoheld-graphql-commons/health.svg)](https://phpackages.com/packages/kinoheld-graphql-commons)
```

###  Alternatives

[nuwave/lighthouse

A framework for serving GraphQL from Laravel

3.5k10.7M92](/packages/nuwave-lighthouse)[thecodingmachine/graphqlite

Write your GraphQL queries in simple to write controllers (using webonyx/graphql-php).

5723.1M30](/packages/thecodingmachine-graphqlite)[wp-graphql/wp-graphql

GraphQL API for WordPress

3.8k391.7k19](/packages/wp-graphql-wp-graphql)[overblog/graphql-bundle

This bundle provides tools to build a GraphQL server in your Symfony App.

8027.9M28](/packages/overblog-graphql-bundle)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[aimeos/ai-admin-graphql

Aimeos Admin GraphQL API extension

944100.0k4](/packages/aimeos-ai-admin-graphql)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
