PHPackages                             legrisch/statamic-graphql-events - 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. legrisch/statamic-graphql-events

ActiveStatamic-addon[API Development](/categories/api)

legrisch/statamic-graphql-events
================================

A Statamic addon that provides a fieldset and the corresponding GraphQL Queries and fields to handle recurring events with ease.

v0.3.1(3y ago)022MITPHPPHP ^8.0

Since Mar 31Pushed 3y agoCompare

[ Source](https://github.com/legrisch/statamic-graphql-events)[ Packagist](https://packagist.org/packages/legrisch/statamic-graphql-events)[ RSS](/packages/legrisch-statamic-graphql-events/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

Statamic GraphQL Events
========================

[](#statamic-graphql-events-)

Statamic GraphQL Events is a [Statamic](https://statamic.com/) addon that provides a fieldset and the corresponding GraphQL Queries and fields to handle recurring events with ease.

- GraphQL queries &amp; fields for recurring events
- Infinitely complex recurrence rules
- Easy to set up

### Index

[](#index-)

- [Install](#install)
- [Setup](#setup)
- [How to Use](#how-to-use)
    - [Concepts](#concepts)
    - [Queries](#queries)
        - [`eventsAfter`](#eventsafter)
        - [`eventsAfterNow`](#eventsafternow)
        - [`eventsBetween`](#eventsbetween)
    - [Fields](#fields)
        - [`occurrences`](#occurrences)
        - [`occurrencesAfter`](#occurrencesafter)
        - [`occurrencesAfterNow`](#occurrencesafternow)
        - [`occurrencesBetween`](#occurrencesbetween)
- [License](#license)

Install
-------

[](#install)

```
composer require legrisch/statamic-graphql-events
```

Setup
-----

[](#setup)

> This addon assumes that you want to use a single collection and entries of a single blueprint as the source of your events.

- Run `php artisan vendor:publish --tag=statamic.graphql-events --force` to publish the configuration along with the provided fieldset "Dates".
- Add the provided fieldset "Dates" to the blueprints of your events collection. You may translate the fields to your liking, but be sure to keep the handles.
- Edit the addon configuration: `config/statamic/graphql-events.php`.
- Open the GraphiQL Editor.
- You should see three new queries: `eventsAfter`, `eventsAfterNow` and `eventsBetween`.

How to Use
----------

[](#how-to-use)

### Concepts

[](#concepts)

An event may have an arbitrary amount of recurrence rules, however there are two limitations:

- If an event is not marked as happening "all day", a start time is required.
- If an event is marked as recurring, a date which defines the end of the recurrence is required.

### Queries

[](#queries)

> Fields and Queries that use dates as an input accept everything that `Carbon::parse` accepts.

All query results are sorted by the first occurrence in the given timeframe.

#### `eventsAfter`

[](#eventsafter)

Returns events that have occurrences after a certain date.

##### Example

[](#example--)

```
query MyQuery {
  eventsAfter(after: "1. April 2022") {
    title
    slug
    occurrencesAfter(after: "1. April 2022") {
      start
    }
  }
}
```

#### `eventsAfterNow`

[](#eventsafternow)

Returns events that have occurrences after now.

##### Example

[](#example---1)

```
query MyQuery {
  eventsAfterNow {
    slug
    title
    occurrencesAfterNow {
      start
    }
  }
}
```

#### `eventsBetween`

[](#eventsbetween)

Returns events that have occurrences between two provided dates.

##### Example

[](#example---2)

```
query MyQuery {
  eventsBetween(from: "1. March 2022", to: "1. April 2022") {
    slug
    title
    occurrencesBetween(from: "1. March 2022", to: "1. April 2022") {
      start
    }
  }
}
```

### Fields

[](#fields)

Besides the queries, this addon adds fields to the GraphQL type of your entries.

#### `occurrences`

[](#occurrences)

Returns the occurrences of an event starting from the first occurrence.

##### Example

[](#example-)

```
occurrences(limit: 10) {
  start
  end
  allDay
}
```

#### `occurrencesAfter`

[](#occurrencesafter)

Returns the occurrences of an event starting from a provided date.

##### Example

[](#example--1)

```
occurrencesAfter(after: "1. April 2022", limit: 10) {
  start
  end
  allDay
}
```

#### `occurrencesAfterNow`

[](#occurrencesafternow)

Returns the occurrences of an event starting from now.

##### Example

[](#example--2)

```
occurrencesAfterNow(limit: 10) {
  start
  end
  allDay
}
```

#### `occurrencesBetween`

[](#occurrencesbetween)

Returns the occurrences of an event between two provided dates.

##### Example

[](#example--3)

```
occurrencesBetween(from: "1. March 2022", to: "1. April 2022") {
  start
  end
  allDay
}
```

---

License
-------

[](#license)

This project is licensed under the MIT License.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Every ~41 days

Recently: every ~51 days

Total

6

Last Release

1348d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/73345788?v=4)[le grisch](/maintainers/legrisch)[@legrisch](https://github.com/legrisch)

---

Top Contributors

[![grischaerbe](https://avatars.githubusercontent.com/u/46897060?v=4)](https://github.com/grischaerbe "grischaerbe (19 commits)")

### Embed Badge

![Health badge](/badges/legrisch-statamic-graphql-events/health.svg)

```
[![Health](https://phpackages.com/badges/legrisch-statamic-graphql-events/health.svg)](https://phpackages.com/packages/legrisch-statamic-graphql-events)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[statamic/seo-pro

68516.6k](/packages/statamic-seo-pro)[statamic/statamic

Statamic

829179.5k](/packages/statamic-statamic)[statamic/eloquent-driver

Allows you to store Statamic data in a database.

126741.1k17](/packages/statamic-eloquent-driver)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.7k](/packages/duncanmcclean-statamic-cargo)[cboxdk/statamic-mcp

MCP (Model Context Protocol) server for Statamic CMS v6 — gives AI assistants structured access to content, blueprints, assets, and more.

3114.5k](/packages/cboxdk-statamic-mcp)

PHPackages © 2026

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