devcake/graphql-php-scalars

A collection of custom scalar types for usage with Lighthouse-php

Maintainers

Package info

github.com/devcake-deventer/graphql-php-scalars

pkg:composer/devcake/graphql-php-scalars

Statistics

Installs: 12

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

0.0.1 2021-02-04 14:19 UTC

This package is auto-updated.

Last update: 2026-03-05 01:28:00 UTC


README

Installation

composer require devcake/graphql-php-scalars

Usage

You can use the provided Scalars just like any other type in your schema definition. Don't forget to add them in your schema.graphqlfile. Like below

scalar Price @scalar(class: "DEVcake\GraphQLScalars")

Simple scalars

Price Scalar

A price string, formatted like 13.37