{"id":20111934,"url":"https://github.com/graphpql/graphpinator-extra-types","last_synced_at":"2026-01-05T13:10:45.433Z","repository":{"id":50072495,"uuid":"336770005","full_name":"graphpql/graphpinator-extra-types","owner":"graphpql","description":":zap::globe_with_meridians::zap: Some useful and commonly used types, both scalar or composite.","archived":false,"fork":false,"pushed_at":"2023-11-28T12:08:44.000Z","size":157,"stargazers_count":3,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-03T03:22:06.540Z","etag":null,"topics":["graphql","graphql-php","php"],"latest_commit_sha":null,"homepage":"https://github.com/graphpql","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graphpql.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2021-02-07T11:29:54.000Z","updated_at":"2023-12-02T13:59:30.000Z","dependencies_parsed_at":"2023-01-22T03:20:14.261Z","dependency_job_id":null,"html_url":"https://github.com/graphpql/graphpinator-extra-types","commit_stats":null,"previous_names":["graphpql/graphpinator-extra-types"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphpql%2Fgraphpinator-extra-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphpql%2Fgraphpinator-extra-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphpql%2Fgraphpinator-extra-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphpql%2Fgraphpinator-extra-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphpql","download_url":"https://codeload.github.com/graphpql/graphpinator-extra-types/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224500001,"owners_count":17321617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql","graphql-php","php"],"created_at":"2024-11-13T18:18:15.359Z","updated_at":"2025-10-23T21:42:35.870Z","avatar_url":"https://github.com/graphpql.png","language":"PHP","readme":"# 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://codecov.io/gh/infinityloop-dev/graphpinator-extra-types/branch/master/graph/badge.svg)](https://codecov.io/gh/infinityloop-dev/graphpinator-extra-types)\n\n:zap::globe_with_meridians::zap: Some useful and commonly used types, both scalar or composite.\n\n## Introduction\n\nThis package includes some commonly used types. Those types are not covered by the specs and therefore are not part of the main Graphpinator package.\n\n## Installation\n\nInstall package using composer\n\n```composer require infinityloop-dev/graphpinator-extra-types```\n\n## How to use\n\nIn 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.\n\n\u003e 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.\n\nThis package contains the following types:\n\n##### Miscellaneous types\n\n- `\\Graphpinator\\ExtraTypes\\AnyType`\n    - Any scalar value is accepted = `string | int | float | bool`.\n- `\\Graphpinator\\ExtraTypes\\VoidType`\n    - Only `null`.\n- `\\Graphpinator\\ExtraTypes\\BigIntType`\n    - GraphqQL `Int` is required to be 32bit, `BigInt` type bypasses that restriction and allows for 64bit integers.\n\n##### String value types\n\n- `\\Graphpinator\\ExtraTypes\\DateTimeType`\n    - Datetime in ISO 8601 format.\n- `\\Graphpinator\\ExtraTypes\\DateType`\n    - Date in ISO 8601 format (the date part).\n- `\\Graphpinator\\ExtraTypes\\TimeType`\n    - Time in ISO 8601 format (the time part).\n- `\\Graphpinator\\ExtraTypes\\LocalDateTimeType`\n    - Datetime in \"YYYY-MM-DD HH:MM:SS\" format (without the timezone information).\n- `\\Graphpinator\\ExtraTypes\\LocalTimeType`\n    - Time in \"HH:MM:SS\" format (without the timezone information).\n- `\\Graphpinator\\ExtraTypes\\LocalTimeEndType`\n  - Time in \"HH:MM:SS\" format (without the timezone information), including a special 24:00:00 value for usage in intervals.\n- `\\Graphpinator\\ExtraTypes\\JsonType`\n    - Valid JSON.\n- `\\Graphpinator\\ExtraTypes\\EmailAddressType`\n    - Email address.\n- `\\Graphpinator\\ExtraTypes\\UrlType`\n    - URL adress.\n- `\\Graphpinator\\ExtraTypes\\MacType`\n    - MAC identifier.\n- `\\Graphpinator\\ExtraTypes\\IPv4Type`\n    - IPv4 address.\n- `\\Graphpinator\\ExtraTypes\\IPv6Type`\n    - IPv6 address.\n- `\\Graphpinator\\ExtraTypes\\UUIDType`\n    - UUID (universally unique identifier).\n- `\\Graphpinator\\ExtraTypes\\PostalCodeType`\n    - Postal/Zip code.\n- `\\Graphpinator\\ExtraTypes\\PhoneNumberType`\n    - Phone number.\n\n##### Object \u0026 input types\n\n- `\\Graphpinator\\ExtraTypes\\PointType` \u0026 `\\Graphpinator\\ExtraTypes\\PointInput`\n    - Any pair of x/y values.\n- `\\Graphpinator\\ExtraTypes\\GpsType` \u0026 `\\Graphpinator\\ExtraTypes\\GpsInput`\n    - GPS coordinates.\n    - Requires constraint-directives.\n- `\\Graphpinator\\ExtraTypes\\HslType` \u0026 `\\Graphpinator\\ExtraTypes\\HslInput`\n    - HSL color scheme.\n    - Requires constraint-directives.\n- `\\Graphpinator\\ExtraTypes\\HslaType` \u0026 `\\Graphpinator\\ExtraTypes\\HslaInput`\n    - HSL color scheme with added alpha.\n    - Requires constraint-directives.\n- `\\Graphpinator\\ExtraTypes\\RgbType` \u0026 `\\Graphpinator\\ExtraTypes\\RgbInput`\n    - RGB color scheme.\n    - Requires constraint-directives.\n- `\\Graphpinator\\ExtraTypes\\RgbaType` \u0026 `\\Graphpinator\\ExtraTypes\\RgbaInput`\n    - RGB color scheme with added alpha.\n    - Requires constraint-directives.\n\n##### Directives\n\n- `\\Graphpinator\\ExtraTypes\\NotNullForArgDirective`\n    - Directive on Field definition location. \n    - It guarantees that nullable field wont return null if specified argument value is provided.\n- `\\Graphpinator\\ExtraTypes\\OptionalDirective`\n    - Argument definition location. \n    - 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.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphpql%2Fgraphpinator-extra-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphpql%2Fgraphpinator-extra-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphpql%2Fgraphpinator-extra-types/lists"}