devcake / graphql-php-scalars
A collection of custom scalar types for usage with Lighthouse-php
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/devcake/graphql-php-scalars
Requires
- nuwave/lighthouse: ^5.2
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-10-05 00:29:36 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.graphql
file. Like below
scalar Price @scalar(class: "DEVcake\GraphQLScalars")
Simple scalars
Price Scalar
A price string, formatted like 13.37