A custom Drupal 10/11 module for managing events with a REST API and card-based UI.
- 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
# 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| 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 |
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"
}'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 crVisit: https://drupal-event-manager.ddev.site/events
- Drupal 10 / 11 · PHP 8.2+ · MySQL · DDEV
Sonali John — Drupal & PHP Full Stack Developer
LinkedIn · GitHub