PHPackages                             cubear/cwd\_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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cubear/cwd\_events

ActiveDrupal-custom-module[Utility &amp; Helpers](/categories/utility)

cubear/cwd\_events
==================

A Drupal 9 module to embed Localist events in a block.

v9.1.0(4y ago)31.3k1[7 issues](https://github.com/CU-CommunityApps/CD_cwd_events/issues)[13 PRs](https://github.com/CU-CommunityApps/CD_cwd_events/pulls)GPL-2.0-or-laterHTML

Since Sep 21Pushed 2y ago19 watchersCompare

[ Source](https://github.com/CU-CommunityApps/CD_cwd_events)[ Packagist](https://packagist.org/packages/cubear/cwd_events)[ Docs](https://it.cornell.edu/custom-web)[ RSS](/packages/cubear-cwd-events/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (10)DependenciesVersions (47)Used By (0)

CD\_cwd\_events
===============

[](#cd_cwd_events)

rename your branch to main

```
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
```

[![Latest Stable Version](https://camo.githubusercontent.com/5e810314e25e95725e597424eba7a706e07147c1a7312fbfb9da1803b6560bed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6375626561722f6377645f6576656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cubear/cwd_events) [![Build passing](https://camo.githubusercontent.com/b0c6c6845a74cb65a7f0a32bdcfd8fbf80eeb40026c4029af424ab371c94b8bd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e "All tests passed")](https://camo.githubusercontent.com/b0c6c6845a74cb65a7f0a32bdcfd8fbf80eeb40026c4029af424ab371c94b8bd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e) [![Code Coverage](https://camo.githubusercontent.com/6bb33818c11d36a5bf9dbc3d385b72ed77c688a7812bf6cec9f6e2fcc8629ab1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d38352532352d79656c6c6f77677265656e "Test cover 83% of code")](https://camo.githubusercontent.com/6bb33818c11d36a5bf9dbc3d385b72ed77c688a7812bf6cec9f6e2fcc8629ab1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d38352532352d79656c6c6f77677265656e)

A light weight Drupal module to pull localist and render in a cwd\_events block. With six options for built in views.

[Interactive Demo Page](https://cu-communityapps.github.io/CD_cwd_events/src/app/index.html) (Deprecated)
---------------------------------------------------------------------------------------------------------

[](#interactive-demo-page-deprecated)

[Component Demo Page](https://philwilliammee.github.io/react-localist-viewer/?path=/story/react-localist-viewer-localist-app--calendar)
---------------------------------------------------------------------------------------------------------------------------------------

[](#component-demo-page)

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

[](#prerequisites)

This module is made for use with a Drupal websites. Development requires Node and NPM.

### Installing

[](#installing)

with composer

```
composer require cubear/cwd_events
```

or download directly from [Github Repo](https://github.com/CU-CommunityApps/CD_cwd_events).

```
cd modules/custom && git clone https://github.com/CU-CommunityApps/CD_cwd_events
```

Development to compile sass and javascript.

```
cd ./src/app
npm install
npm run watch
```

Running the tests
-----------------

[](#running-the-tests)

start a local server in the /dev folder using http-server

```
npm install -global http-server
```

then run

```
npm run test
```

check for test coverage:

```
npm run coverage
```

view browser tests [Demo Page](https://cu-communityapps.github.io/CD_cwd_events/dev/test.html)

### Break down into end to end tests

[](#break-down-into-end-to-end-tests)

Test are loocated in the dev/test folder and test for:

- localist main function
- localist connector
- all templates
- all helper functions

    button click events are not currently tested and must be done manually using the demo page.

### And coding style tests

[](#and-coding-style-tests)

This module follows drupal code standards for phpcs and linting.

- see the `.eslintrc.json` file for linting details.
- see [squizlabs/PHP\_CodeSniffer](https://www.drupal.org/docs/8/modules/code-review-module/installing-coder-sniffer) for more details.

production builds `npm prod` require all linting tests to pass before the build can finish with success.

Deployment
----------

[](#deployment)

enable the module with drush

```
drush en cwd_events
```

add a Events block and configure block settings.

This is an example of the block output:

```

      Block Name
      Read More

```

To use the Drupal API enable install and enable the Drupal Graphql Modules
--------------------------------------------------------------------------

[](#to-use-the-drupal-api-enable-install-and-enable-the-drupal-graphql-modules)

```
drush en graphql
drush en graphql_core
```

Set the Graphql permissions for anonymous users.

- Bypass field security (optional)
- Execute arbitrary GraphQL requests
- Execute persisted GraphQL requests

More about the Localist API
---------------------------

[](#more-about-the-localist-api)

The localist api docs

### API query Filters

[](#api-query-filters)

READ the API DOCS! In many cases just play around with the demo, until you get the results you need.

The module builds a query that is made to to the localist api

The localist api returns results with the three parameters Anded together:

Departments are (OR) keywords (AND) Group\_id (integer)

Currently the Drupal module does not support multiple keywords. The API does support multiple keywords but they would be ORed together and in most cases the resulting query is very small. If you have a project that requires multiple keywords put in a issue for it.

Built With
----------

[](#built-with)

- [laravel mix](https://github.com/JeffreyWay/laravel-mix) - The babel and sass transpiller

Versioning
----------

[](#versioning)

For the versions available, see the [tags on this repository](https://github.com/CU-CommunityApps/CD_cwd_events/tags).

Authors
-------

[](#authors)

- **Richard Marisa** - *Druapl Work* - [richmarisa](https://github.com/richmarisa)
- **Phil Williammee** - *Javascript Work* - [philwilliammee](https://github.com/philwilliammee)

See also the list of [contributors](https://github.com/CU-CommunityApps/CD_cwd_events/graphs/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the GNU General Public License v2.0 - see the [LICENSE.md](https://github.com/CU-CommunityApps/CD_cwd_events/blob/master/LICENSE) file for details

Acknowledgments
---------------

[](#acknowledgments)

- Hat tip to Anthony M. Adinolfi for his work on localist event in Cornell Base theme.

Sites using this plugin.
------------------------

[](#sites-using-this-plugin)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 82.7% 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 ~42 days

Recently: every ~55 days

Total

30

Last Release

1610d ago

Major Versions

v1.1.51 → v2.0-alpha2019-08-12

v2.0.0 → v3.0.02019-10-02

3.1.2 → v9.0.02020-07-28

8.7.0 → 9.3.x-dev2021-09-14

8.8.1 → v9.1.02022-01-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c76feb8cb1a158dbe37feac0d7ef1ee7bccb80e2d3cb50fff6fd50f2c48e8ab?d=identicon)[richmarisa](/maintainers/richmarisa)

---

Top Contributors

[![philwilliammee](https://avatars.githubusercontent.com/u/4685094?v=4)](https://github.com/philwilliammee "philwilliammee (191 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![alisonjo315](https://avatars.githubusercontent.com/u/2660348?v=4)](https://github.com/alisonjo315 "alisonjo315 (7 commits)")[![stacypendell](https://avatars.githubusercontent.com/u/4334361?v=4)](https://github.com/stacypendell "stacypendell (7 commits)")[![melissagore](https://avatars.githubusercontent.com/u/649983?v=4)](https://github.com/melissagore "melissagore (5 commits)")[![richmarisa](https://avatars.githubusercontent.com/u/6989734?v=4)](https://github.com/richmarisa "richmarisa (5 commits)")

### Embed Badge

![Health badge](/badges/cubear-cwd-events/health.svg)

```
[![Health](https://phpackages.com/badges/cubear-cwd-events/health.svg)](https://phpackages.com/packages/cubear-cwd-events)
```

###  Alternatives

[japanese-holiday/japanese-holiday

30127.5k](/packages/japanese-holiday-japanese-holiday)[in2code/lux

Living User eXperience - LUX - the Marketing Automation tool for TYPO3.

2156.6k1](/packages/in2code-lux)[laraveldaily/filawidgets

Reusable Filament dashboard widgets.

461.2k](/packages/laraveldaily-filawidgets)

PHPackages © 2026

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