PHPackages                             freshcells/graphqlite-misc-types - 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. freshcells/graphqlite-misc-types

ActiveLibrary[API Development](/categories/api)

freshcells/graphqlite-misc-types
================================

A collection of non-standard GraphQL types to be used with GraphQLite.

2.0.1(3y ago)09.2k↓74.3%1MITPHPPHP &gt;=7.4

Since Aug 4Pushed 3y ago3 watchersCompare

[ Source](https://github.com/freshcells/graphqlite-misc-types)[ Packagist](https://packagist.org/packages/freshcells/graphqlite-misc-types)[ Docs](https://github.com/freshcells/graphqlite-misc-types)[ RSS](/packages/freshcells-graphqlite-misc-types/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (5)Versions (4)Used By (0)

GraphQLite miscellaneous types
==============================

[](#graphqlite-miscellaneous-types)

This package is an add-on to the [GraphQLite](http://graphqlite.thecodingmachine.io/) PHP library. It contains a set of GraphQL scalar types that can be added to GraphQLite.

This is a takeover drop-in fork of  which seems to be abandoned.
We left the namespace as `TheCodingMachine` to assure drop-in replacement.

Install
-------

[](#install)

```
$ composer require freshcells/graphqlite-misc-types
```

"Any" scalar type
-----------------

[](#any-scalar-type)

This types adds support for a "AnyScalar" type that can be any of "string", "int", "float" or "bool".

### Usage

[](#usage)

```
/**
 * @Query()
 * @param scalar $scalar
 * @return scalar
 */
public function echoScalar($scalar)
{
    return $scalar;
}
```

Use the "scalar" type-hint in the DocBlock to cast a value to "AnyScalar".

### Registering AnyScalar

[](#registering-anyscalar)

#### Using the SchemaFactory

[](#using-the-schemafactory)

If you are using the `SchemaFactory` to initialize GraphQLite, use this code to add support for `AnyScalar`:

```
$schemaFactory->addRootTypeMapper(new \TheCodingMachine\GraphQLite\Types\AnyScalar\AnyScalarTypeMapper());
```

#### Using the Symfony bundle

[](#using-the-symfony-bundle)

If you are using the Symfony bundle to initialize GraphQLite, register the `AnyScalarTypeMapper` as a service:

```
# config/services.yaml
services:
    TheCodingMachine\GraphQLite\Types\AnyScalar\AnyScalarTypeMapper:
        tags: ['graphql.root_type_mapper']
```

"JSON" type
-----------

[](#json-type)

This type adds support for a "JSON" type that can be used to represent JSON data.

#### Using the Symfony bundle

[](#using-the-symfony-bundle-1)

If you are using the Symfony bundle to initialize GraphQLite, register the `JSONScalarTypeMapperFactory` as a service:

```
# config/services.yaml
services:
    TheCodingMachine\GraphQLite\Types\JSONScalar\JSONScalarTypeMapperFactory:
        tags: ['graphql.root_type_mapper_factory']
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~2 days

Total

3

Last Release

1425d ago

Major Versions

1.0.0 → 2.0.02022-08-05

### Community

Maintainers

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

---

Top Contributors

[![ivoba](https://avatars.githubusercontent.com/u/471254?v=4)](https://github.com/ivoba "ivoba (11 commits)")[![andrew-demb](https://avatars.githubusercontent.com/u/12499813?v=4)](https://github.com/andrew-demb "andrew-demb (1 commits)")

---

Tags

graphqltypesGraphQLite

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/freshcells-graphqlite-misc-types/health.svg)

```
[![Health](https://phpackages.com/badges/freshcells-graphqlite-misc-types/health.svg)](https://phpackages.com/packages/freshcells-graphqlite-misc-types)
```

###  Alternatives

[nuwave/lighthouse

A framework for serving GraphQL from Laravel

3.5k11.8M117](/packages/nuwave-lighthouse)[overblog/graphql-bundle

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

8028.4M38](/packages/overblog-graphql-bundle)[aimeos/ai-admin-graphql

Aimeos Admin GraphQL API extension

1.0k109.9k7](/packages/aimeos-ai-admin-graphql)[oxid-esales/graphql-base

OXID eSales GraphQL base module

24107.6k16](/packages/oxid-esales-graphql-base)[mll-lab/graphql-php-scalars

A collection of custom scalar types for usage with https://github.com/webonyx/graphql-php

1394.7M40](/packages/mll-lab-graphql-php-scalars)[ivome/graphql-relay-php

A PHP port of GraphQL Relay reference implementation

271691.2k5](/packages/ivome-graphql-relay-php)

PHPackages © 2026

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