PHPackages                             infinityloop-dev/graphpinator-extra-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. infinityloop-dev/graphpinator-extra-types

ActiveLibrary[API Development](/categories/api)

infinityloop-dev/graphpinator-extra-types
=========================================

Some useful and commonly used types, both scalar or composite.

v2.0.1(4mo ago)39.8k↓35.7%4[4 issues](https://github.com/graphpql/graphpinator-extra-types/issues)[1 PRs](https://github.com/graphpql/graphpinator-extra-types/pulls)1MITPHPPHP &gt;=8.2CI passing

Since Feb 12Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/graphpql/graphpinator-extra-types)[ Packagist](https://packagist.org/packages/infinityloop-dev/graphpinator-extra-types)[ Docs](https://github.com/graphpql/)[ RSS](/packages/infinityloop-dev-graphpinator-extra-types/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (24)Used By (1)

GraPHPinator Extra types [![PHP](https://github.com/graphpql/graphpinator-extra-types/actions/workflows/php.yml/badge.svg)](https://github.com/graphpql/graphpinator-extra-types/actions/workflows/php.yml) [![codecov](https://camo.githubusercontent.com/8feb0488c0d1b5438f39249a5cd447a85c6025d7ecffd4bd61b9cd4ee01daecb/68747470733a2f2f636f6465636f762e696f2f67682f696e66696e6974796c6f6f702d6465762f677261706870696e61746f722d65787472612d74797065732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/infinityloop-dev/graphpinator-extra-types)
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#graphpinator-extra-types--)

⚡🌐⚡ Some useful and commonly used types, both scalar or composite.

Introduction
------------

[](#introduction)

This package includes some commonly used types. Those types are not covered by the specs and therefore are not part of the main Graphpinator package.

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

[](#installation)

Install package using composer

`composer require infinityloop-dev/graphpinator-extra-types`

How to use
----------

[](#how-to-use)

In order to enable the types on your server, the only thing you need to do is to put selected types to your `Container`. You may use all or only some.

> Some of the types have special requirements on `infinityloop-dev/graphpinator-constraint-directives`, which needs to be enabled first if you wish to use according type.

This package contains the following types:

##### Miscellaneous types

[](#miscellaneous-types)

- `\Graphpinator\ExtraTypes\AnyType`
    - Any scalar value is accepted = `string | int | float | bool`.
- `\Graphpinator\ExtraTypes\VoidType`
    - Only `null`.
- `\Graphpinator\ExtraTypes\BigIntType`
    - GraphqQL `Int` is required to be 32bit, `BigInt` type bypasses that restriction and allows for 64bit integers.

##### String value types

[](#string-value-types)

- `\Graphpinator\ExtraTypes\DateTimeType`
    - Datetime in ISO 8601 format.
- `\Graphpinator\ExtraTypes\DateType`
    - Date in ISO 8601 format (the date part).
- `\Graphpinator\ExtraTypes\TimeType`
    - Time in ISO 8601 format (the time part).
- `\Graphpinator\ExtraTypes\LocalDateTimeType`
    - Datetime in "YYYY-MM-DD HH:MM:SS" format (without the timezone information).
- `\Graphpinator\ExtraTypes\LocalTimeType`
    - Time in "HH:MM:SS" format (without the timezone information).
- `\Graphpinator\ExtraTypes\LocalTimeEndType`
    - Time in "HH:MM:SS" format (without the timezone information), including a special 24:00:00 value for usage in intervals.
- `\Graphpinator\ExtraTypes\JsonType`
    - Valid JSON.
- `\Graphpinator\ExtraTypes\EmailAddressType`
    - Email address.
- `\Graphpinator\ExtraTypes\UrlType`
    - URL adress.
- `\Graphpinator\ExtraTypes\MacType`
    - MAC identifier.
- `\Graphpinator\ExtraTypes\IPv4Type`
    - IPv4 address.
- `\Graphpinator\ExtraTypes\IPv6Type`
    - IPv6 address.
- `\Graphpinator\ExtraTypes\UUIDType`
    - UUID (universally unique identifier).
- `\Graphpinator\ExtraTypes\PostalCodeType`
    - Postal/Zip code.
- `\Graphpinator\ExtraTypes\PhoneNumberType`
    - Phone number.

##### Object &amp; input types

[](#object--input-types)

- `\Graphpinator\ExtraTypes\PointType` &amp; `\Graphpinator\ExtraTypes\PointInput`
    - Any pair of x/y values.
- `\Graphpinator\ExtraTypes\GpsType` &amp; `\Graphpinator\ExtraTypes\GpsInput`
    - GPS coordinates.
    - Requires constraint-directives.
- `\Graphpinator\ExtraTypes\HslType` &amp; `\Graphpinator\ExtraTypes\HslInput`
    - HSL color scheme.
    - Requires constraint-directives.
- `\Graphpinator\ExtraTypes\HslaType` &amp; `\Graphpinator\ExtraTypes\HslaInput`
    - HSL color scheme with added alpha.
    - Requires constraint-directives.
- `\Graphpinator\ExtraTypes\RgbType` &amp; `\Graphpinator\ExtraTypes\RgbInput`
    - RGB color scheme.
    - Requires constraint-directives.
- `\Graphpinator\ExtraTypes\RgbaType` &amp; `\Graphpinator\ExtraTypes\RgbaInput`
    - RGB color scheme with added alpha.
    - Requires constraint-directives.

##### Directives

[](#directives)

- `\Graphpinator\ExtraTypes\NotNullForArgDirective`
    - Directive on Field definition location.
    - It guarantees that nullable field wont return null if specified argument value is provided.
- `\Graphpinator\ExtraTypes\OptionalDirective`
    - Argument definition location.
    - It marks nullable input field as optional, but not nullable. This input field may be either omitted or contain valid value, but may not be set to null.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance61

Regular maintenance activity

Popularity31

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 80.9% 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 ~99 days

Recently: every ~192 days

Total

19

Last Release

133d ago

Major Versions

v1.8.1 → v2.02025-12-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/00654c913028f8d25a226eb2ddf368e1b999bf72fa4f77dbd1449c1df218756c?d=identicon)[peldax](/maintainers/peldax)

---

Top Contributors

[![peldax](https://avatars.githubusercontent.com/u/10790033?v=4)](https://github.com/peldax "peldax (72 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (14 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![HonzaBejvl](https://avatars.githubusercontent.com/u/23004049?v=4)](https://github.com/HonzaBejvl "HonzaBejvl (1 commits)")[![safrpa](https://avatars.githubusercontent.com/u/200058450?v=4)](https://github.com/safrpa "safrpa (1 commits)")

---

Tags

graphqlgraphql-phpphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/infinityloop-dev-graphpinator-extra-types/health.svg)

```
[![Health](https://phpackages.com/badges/infinityloop-dev-graphpinator-extra-types/health.svg)](https://phpackages.com/packages/infinityloop-dev-graphpinator-extra-types)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23914.2M16](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

92437.3k6](/packages/botman-driver-telegram)

PHPackages © 2026

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