PHPackages                             localgovdrupal/localgov\_moderngov - 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. [Templating &amp; Views](/categories/templating)
4. /
5. localgovdrupal/localgov\_moderngov

ActiveDrupal-module[Templating &amp; Views](/categories/templating)

localgovdrupal/localgov\_moderngov
==================================

Drupal module for ModernGov template page generation.

1.x-dev(6mo ago)015.2k↓41.7%[6 issues](https://github.com/localgovdrupal/localgov_moderngov/issues)GPL-2.0-or-laterPHPCI passing

Since Feb 18Pushed 6mo ago7 watchersCompare

[ Source](https://github.com/localgovdrupal/localgov_moderngov)[ Packagist](https://packagist.org/packages/localgovdrupal/localgov_moderngov)[ Docs](https://github.com/localgovdrupal/localgov_moderngov)[ RSS](/packages/localgovdrupal-localgov-moderngov/feed)WikiDiscussions 1.x Synced 1mo ago

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

Drupal module for [Modern.Gov](http://www.civica.com/moderngov) template page generation.

Modern.Gov, when provided with a template page URL, fetches that template page at a regular interval. It then uses the template page to generate your instance of the Modern.Gov site.

Features
--------

[](#features)

This module serves the Modern.Gov template page from the /moderngov-template path. If you need a different path then please add a URL alias for /moderngov-template.

The template page has the the following ModernGov tokens embedded within:

- `{pagetitle}` instead of the actual Drupal page title.
- `{breadcrumb}` instead of the Drupal breadcrumb.
- `{content}` instead of the page content.
- `{sidenav}` instead of the second sidebar.

Both links and asset URLs in this Modern.Gov template page are rendered as **absolute** URLs which is a requirement for Modern.Gov template pages.

Page template
-------------

[](#page-template)

Most sites will need a customized Modern.Gov page template for their themes. The page template provided with this module is meant to serve as an example of how Modern.Gov tokens could be placed in a page template.

Good to know
------------

[](#good-to-know)

- [ModernGov test URL](https://reversecms.moderngov.co.uk/). This sits behind HTTP authentication.
- Any relative URL embedded within inline Javascript or script tags will *not* be converted to absolute URLs.
- [BigPipe](https://www.drupal.org/docs/8/core/modules/big-pipe/overview) functionality has been turned off. This is because this module is concerned about serving templates for anonymous users. This can be reviewed later if necessary.

Related templates
-----------------

[](#related-templates)

- Empty page template at /moderngov-template?nocontent: Instead of ModernGov tokens, this template comes with an empty `main` HTML tag.
- Header template at /moderngov-template?header: Everything inside the `header` HTML tag. Comes with asset links that preceed the `header` tag.
- Footer template at /moderngov-template?footer: Everything inside the `footer` HTML tag. Joined by asset links that follow the `footer` tag.
- `/moderngov-template?noaggregation`: This template serves CSS and Javasript files without aggregation. The `noaggregation` HTTP query parameter can be used with any of the other parameters mentioned above.

Maintainers
-----------

[](#maintainers)

This project is currently maintained by:

- Muhammad Adnan
- Finn lewis
- Alistair Wearring

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance67

Regular maintenance activity

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~270 days

Total

3

Last Release

194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b34de4d6c68a26fa8eb3fd78cf8040597decc2fdcd4776f8fd704686adcb5a99?d=identicon)[Adnan-cds](/maintainers/Adnan-cds)

---

Top Contributors

[![Adnan-cds](https://avatars.githubusercontent.com/u/50206849?v=4)](https://github.com/Adnan-cds "Adnan-cds (16 commits)")[![finnlewis](https://avatars.githubusercontent.com/u/326588?v=4)](https://github.com/finnlewis "finnlewis (3 commits)")[![millnut](https://avatars.githubusercontent.com/u/8024370?v=4)](https://github.com/millnut "millnut (1 commits)")

### Embed Badge

![Health badge](/badges/localgovdrupal-localgov-moderngov/health.svg)

```
[![Health](https://phpackages.com/badges/localgovdrupal-localgov-moderngov/health.svg)](https://phpackages.com/packages/localgovdrupal-localgov-moderngov)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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