PHPackages                             devcake/graphql-php-scalars - 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. devcake/graphql-php-scalars

ActiveLibrary[API Development](/categories/api)

devcake/graphql-php-scalars
===========================

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

0.0.1(5y ago)112MITPHP

Since Feb 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/devcake-deventer/graphql-php-scalars)[ Packagist](https://packagist.org/packages/devcake/graphql-php-scalars)[ RSS](/packages/devcake-graphql-php-scalars/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

GraphQL PHP Scalars
===================

[](#graphql-php-scalars)

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

[](#installation)

`composer require devcake/graphql-php-scalars`

Usage
-----

[](#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
--------------

[](#simple-scalars)

### Price Scalar

[](#price-scalar)

A price string, formatted like 13.37

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1975d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1de9317e0fc8687dfcff32fac1fd5527293ac23e9c7ad5297f6a3e98e8f4ea40?d=identicon)[m.slinkman](/maintainers/m.slinkman)

---

Top Contributors

[![mikeslinkman](https://avatars.githubusercontent.com/u/3715598?v=4)](https://github.com/mikeslinkman "mikeslinkman (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devcake-graphql-php-scalars/health.svg)

```
[![Health](https://phpackages.com/badges/devcake-graphql-php-scalars/health.svg)](https://phpackages.com/packages/devcake-graphql-php-scalars)
```

###  Alternatives

[joselfonseca/lighthouse-graphql-passport-auth

Add GraphQL types and mutations for login and recover password functionalities

233804.4k1](/packages/joselfonseca-lighthouse-graphql-passport-auth)[yakovenko/laravel-lighthouse-graphql-multi-schema

A Laravel package that provides multi-schema support for Lighthouse GraphQL.

16134.5k](/packages/yakovenko-laravel-lighthouse-graphql-multi-schema)

PHPackages © 2026

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