定制 infinityloop-dev/graphpinator-extra-types 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

infinityloop-dev/graphpinator-extra-types

Composer 安装命令:

composer require infinityloop-dev/graphpinator-extra-types

包简介

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

README 文档

README

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

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

Install package using composer

composer require infinityloop-dev/graphpinator-extra-types

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
  • \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
  • \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 & input types
  • \Graphpinator\ExtraTypes\PointType & \Graphpinator\ExtraTypes\PointInput
    • Any pair of x/y values.
  • \Graphpinator\ExtraTypes\GpsType & \Graphpinator\ExtraTypes\GpsInput
    • GPS coordinates.
    • Requires constraint-directives.
  • \Graphpinator\ExtraTypes\HslType & \Graphpinator\ExtraTypes\HslInput
    • HSL color scheme.
    • Requires constraint-directives.
  • \Graphpinator\ExtraTypes\HslaType & \Graphpinator\ExtraTypes\HslaInput
    • HSL color scheme with added alpha.
    • Requires constraint-directives.
  • \Graphpinator\ExtraTypes\RgbType & \Graphpinator\ExtraTypes\RgbInput
    • RGB color scheme.
    • Requires constraint-directives.
  • \Graphpinator\ExtraTypes\RgbaType & \Graphpinator\ExtraTypes\RgbaInput
    • RGB color scheme with added alpha.
    • Requires constraint-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.

infinityloop-dev/graphpinator-extra-types 适用场景与选型建议

infinityloop-dev/graphpinator-extra-types 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11.26k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2021 年 02 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 infinityloop-dev/graphpinator-extra-types 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 infinityloop-dev/graphpinator-extra-types 我们能提供哪些服务?
定制开发 / 二次开发

基于 infinityloop-dev/graphpinator-extra-types 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 11.26k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 10
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-12