PHPackages                             mathsgod/gql-scalar-date - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mathsgod/gql-scalar-date

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mathsgod/gql-scalar-date
========================

1.0.0(6y ago)02[1 PRs](https://github.com/mathsgod/gql-scalar-date/pulls)MITPHPCI passing

Since Nov 1Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/mathsgod/gql-scalar-date)[ Packagist](https://packagist.org/packages/mathsgod/gql-scalar-date)[ RSS](/packages/mathsgod-gql-scalar-date/feed)WikiDiscussions master Synced today

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

gql-scalar-email
================

[](#gql-scalar-email)

```

    $gql = "
scalar Date
scalar DateTime
type Query{
    testDate(d:Date):Date
    testDateTime(dt:DateTime):DateTime
}
";

   $typeConfigDecorator = function ($typeConfig) {
        $name = $typeConfig['name'];

        if ($name === 'Date') {
            $email = new Scalar\Date();

            $typeConfig["serialize"] = [$email, "serialize"];
            $typeConfig["parseLiteral"] = [$email, "parseLiteral"];
        }

            if ($name === 'DateTime') {
            $email = new Scalar\DateTime();

            $typeConfig["serialize"] = [$email, "serialize"];
            $typeConfig["parseLiteral"] = [$email, "parseLiteral"];
        }

        return $typeConfig;
    };

    $schema = BuildSchema::build($gql, $typeConfigDecorator);
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance54

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

2382d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30f25555e58060ace793b731c172c739d45e9506154c9611990d2f985f61652b?d=identicon)[mathsgod](/maintainers/mathsgod)

---

Top Contributors

[![mathsgod](https://avatars.githubusercontent.com/u/18732337?v=4)](https://github.com/mathsgod "mathsgod (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mathsgod-gql-scalar-date/health.svg)

```
[![Health](https://phpackages.com/badges/mathsgod-gql-scalar-date/health.svg)](https://phpackages.com/packages/mathsgod-gql-scalar-date)
```

###  Alternatives

[qinchen/web-utils

A web application common utils

111.4k](/packages/qinchen-web-utils)

PHPackages © 2026

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