PHPackages                             marspress/graphql-fields - 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. marspress/graphql-fields

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

marspress/graphql-fields
========================

Utility package to add new Fields to GraphQL plugin in WordPress.

1.0(4y ago)08GPL-2.0PHPPHP &gt;=7.4

Since Dec 6Pushed 4y ago2 watchersCompare

[ Source](https://github.com/MARSWorksInc/wordpress-graphql-fields)[ Packagist](https://packagist.org/packages/marspress/graphql-fields)[ RSS](/packages/marspress-graphql-fields/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

MarsPress GraphQL Field
=======================

[](#marspress-graphql-field)

### Installation

[](#installation)

Require the composer package in your composer.json with `marspress/graphql-fields` with minimum `dev-main` OR run `composer require marspress/graphql-fields`

### References

[](#references)

-

### Usage

[](#usage)

`new \MarsPress\GraphQL\Field()` takes 6 parameters.

- Type Name (required)(string)
- Field Name (required)(string)
- Field Type (required)(string)
- Field Description (required)(string)
- Field Arguments (required)(array)
- Field Resolve (required)(callable)
    - A callable method. This can be a Closure function or an array with a class method passed as such: `[ $this, '' ]`(non-static) OR `[ __CLASS__, '' ]`(static)
    - If the callback is not callable, a message will be outputted to admins in the WordPress Admin area.
    - IMPORTANT: your callback will be passed 4 parameters:
        - Source (unknown, update type here please)
        - Arguments (unknown, update type here please)
        - Context (unknown, update type here please)
        - Info (object)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

1669d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/86261906?v=4)[Jesse Vickery](/maintainers/martian-jesse)[@martian-jesse](https://github.com/martian-jesse)

---

Top Contributors

[![martian-jesse](https://avatars.githubusercontent.com/u/86261906?v=4)](https://github.com/martian-jesse "martian-jesse (3 commits)")

### Embed Badge

![Health badge](/badges/marspress-graphql-fields/health.svg)

```
[![Health](https://phpackages.com/badges/marspress-graphql-fields/health.svg)](https://phpackages.com/packages/marspress-graphql-fields)
```

###  Alternatives

[steverobbins/magescan

Scan a Magento application for information

4611.1k](/packages/steverobbins-magescan)[lukaskleinschmidt/kirby-snippet-controller

Kirby Snippet Controller

192.3k](/packages/lukaskleinschmidt-kirby-snippet-controller)

PHPackages © 2026

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