Skip to content

sonalijohn/drupal-event-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal Event Manager

A custom Drupal 10/11 module for managing events with a REST API and card-based UI.

Features

  • Custom Event content type — date, location, body, registration URL
  • /events page — responsive card UI with Twig template
  • Full REST API at /api/events — GET, POST, DELETE
  • Clean install/uninstall hooks
  • Works with Drupal 10 and 11

Installation

# Copy module into your Drupal site
cp -r web/modules/custom/event_manager /your-drupal/web/modules/custom/

# Enable via Drush
drush en event_manager -y
drush cr

REST API

Method Endpoint Description
GET /api/events List all events
GET /api/events/{id} Get single event
POST /api/events Create event
DELETE /api/events/{id} Delete event

Example

curl -X POST https://your-site/api/events \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Drupal Kerala Meetup",
    "date": "2025-09-01T10:00:00",
    "location": "Kochi, Kerala",
    "body": "Monthly Drupal community meetup.",
    "registration_url": "https://example.com/register"
  }'

Local Setup with DDEV

git clone https://github.com/sonalijohn/drupal-event-manager.git
cd drupal-event-manager
ddev start
ddev drush site:install --account-name=admin --account-pass=admin -y
ddev drush en event_manager -y
ddev drush cr

Visit: https://drupal-event-manager.ddev.site/events

Tech Stack

  • Drupal 10 / 11 · PHP 8.2+ · MySQL · DDEV

Author

Sonali John — Drupal & PHP Full Stack Developer
LinkedIn · GitHub

About

Custom Drupal 10/11 module built from scratch — event content type, card UI, and full REST API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors