PHPackages                             localgovdrupal/localgov - 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. [Framework](/categories/framework)
4. /
5. localgovdrupal/localgov

Abandoned → [drupal/localgov](/?search=drupal%2Flocalgov)Drupal-profile[Framework](/categories/framework)

localgovdrupal/localgov
=======================

LocalGovDrupal distribution

3.3.1(8mo ago)100114.5k—3.8%23[180 issues](https://github.com/localgovdrupal/localgov/issues)[5 PRs](https://github.com/localgovdrupal/localgov/pulls)2GPL-2.0-or-laterPHPPHP &gt;=8.1.0CI failing

Since Oct 9Pushed 2mo ago16 watchersCompare

[ Source](https://github.com/localgovdrupal/localgov)[ Packagist](https://packagist.org/packages/localgovdrupal/localgov)[ Docs](https://github.com/localgovdrupal/localgov)[ RSS](/packages/localgovdrupal-localgov/feed)WikiDiscussions 3.x Synced today

READMEChangelog (10)Dependencies (36)Versions (114)Used By (2)

\[Archived\] LocalGov Drupal
============================

[](#archived-localgov-drupal)

This project is archived, please use the drupal.org version at

A Drupal distribution and installation profile designed to help UK and Irish councils collaborate and share Drupal code and build a culture of publishing excellent website content for everyone.

This project is the Drupal installation profile that is best installed using composer to require a project template, localgov\_project, to scaffold and build the codebase, which includes this installation profile.

Patches
-------

[](#patches)

Please note, if you are using Drupal core &lt; 10.3.6, you might want to apply this patch for content moderation and workspaces.

- [Patch](https://www.drupal.org/files/issues/2024-08-11/3179199-3132022-content-moderation-workspaces-query.patch)
- [Issue](https://www.drupal.org/project/drupal/issues/3179199#comment-15711680)

Supported branches
------------------

[](#supported-branches)

We are actively developing and supporting the 3.x branch for Drupal 10.

The 2.x branch is no longer officially supported, as Drupal 9 is unsupported since 1st November 2023. We will continue to help our councils that have not yet upgraded to Drupal 10, on a best efforts basis.

The 1.x branch is no longer actively supported and not recommended for new sites.

**Important:** If you are still using the 1.x or 2.x branches on your site, please [create an issue on Github](https://github.com/localgovdrupal/localgov/issues) to let us know.

Documentation
-------------

[](#documentation)

Further documentation for developers, content designers and other audiences can be found at .

Requirements for installing LocalGov Drupal locally for testing and development
-------------------------------------------------------------------------------

[](#requirements-for-installing-localgov-drupal-locally-for-testing-and-development)

To install LocalGov Drupal locally you will need an appropriate versions of:

- PHP (see )
- A database server like MySQL (see )
- A web server like Apache2 (see )

Many of us use the Lando file included to run a local docker environmnent for testing and development, but some people prefer to run the web servers natively on their host machine.

We also include default DDEV configuration for developers that prefer DDEV. [Visit our DDEV docs page](https://docs.localgovdrupal.org/devs/getting-started/working-with-ddev.html#working-with-ddev) to see how to get set up.

### PHP requirements

[](#php-requirements)

We folllow Drupal's PHP recomendations:

We currently recomend PHP 8.1 also aim to support PHP PHP 8.2 in line with Drupal 10's PHP support.

You will also need to have certain PHP extensions enabled (see ) including:

- PHP mbstring
- PHP cURL
- GD library
- XML

If you see errors when running composer require, double check your PHP extensions.

Composer and Lando
------------------

[](#composer-and-lando)

To install locally, you will need Composer and we recommend using Lando for a consistent developer environment.

-
-

Please also see the Lando requirements section for details of Docker requirements for different operating systems.

Installing LocalGov Drupal locally with composer
------------------------------------------------

[](#installing-localgov-drupal-locally-with-composer)

To install LocalGov Drupal locally for testing or development, use the [Composer-based project template](https://github.com/localgovdrupal/localgov_project).

Change `MY_PROJECT` to whatever you'd like your project directory to be called.

```
composer create-project localgovdrupal/localgov-project:^3.0 MY_PROJECT --no-install
```

Change directory into the MY\_PROJECT directory and run lando start.

```
cd MY_PROJECT
lando start
```

Once lando has finished building, use lando to run composer install and the site installer.

```
lando composer install
lando drush si localgov -y
```

Note: As you might be running a different version of PHP on your host machine from the version that Lando runs, it is advisable to run composer install from within Lando. This ensures dependencies reflect the PHP version that the webserver is actually running.

Composer notes
--------------

[](#composer-notes)

If developing locally and you want to force composer to clone again from source rather than use composer cache, you can add the `--no-cache` flag.

```
composer create-project localgovdrupal/localgov-project:^3.0 MY_PROJECT --no-cache  --no-install
```

If you just want to pull in the latest changes to LocalGov Drupal run composer update with the `--no-cache` flag.

```
lando composer update --no-cache
```

If you want to be sure you are getting the latest commits when developing, clearing composer cache, deleting the folders and re-running composer update seems to be a solid approach:

```
rm -rf web/profiles/contrib/ web/modules/contrib/ web/themes/contrib/;
composer clear-cache; composer update --with-dependencies --no-cache;
lando start;
lando drush si localgov -y;
```

If you run into [memory limit errors](https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors)when running Composer commands, prefix the commands with `COMPOSER_MEMORY_LIMIT=-1`. For example, to install the project run:

```
COMPOSER_MEMORY_LIMIT=-1 composer create-project localgovdrupal/localgov-project:^3.0 MY_PROJECT
```

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md) for current contribution guidelines.

Issue tracking
--------------

[](#issue-tracking)

In the early development stages, most issues will be tracked in this repository .

Development issues relating to specific projects or module should be tracked in the project repository. In the future we might set up a separate repository for centralised issue tracking of bug reports for end users.

Development setup
-----------------

[](#development-setup)

The main development environment in use is currently [Lando](https://docs.lando.dev/) – a Docker based development environment that works on Linux, MacOS and Windows.

@todo Document Lando setup.

Coding standards
----------------

[](#coding-standards)

PHP CodeSniffer is installed as a dev dependency by Composer and configured to use Drupal coding standards and best practices. It is a good idea to run these before committing any code. All code in pull requests should pass all CodeSniffer tests.

To check code using Lando run:

```
lando phpcs
```

To attempt to automatically fix coding errors in Lando run:

```
lando phix
```

### Coding standards resources

[](#coding-standards-resources)

- [Drupal coding standards](https://www.drupal.org/docs/develop/standards)

Running tests
-------------

[](#running-tests)

The included `phpunit.xml.dist` file contains configuration for automatically running the LocalGov Drupal test suite.

To run all LocalGov Drupal tests with Lando use:

```
lando phpunit
```

To run all the tests for a specific module use:

```
lando phpunit web/modules/contrib/localgov_my_module
```

Tests can be filtered using the `--filter` option. To only run a specific test use:

```
lando phpunit --filter=myTestName
```

### Testing resources

[](#testing-resources)

- [PHPUnit documentation](https://phpunit.readthedocs.io/en/7.5/)
- [Drupal 8 PHPUnit documentation](https://www.drupal.org/docs/8/testing/phpunit-in-drupal-8)
- [Drupal 8 testing documentation](https://www.drupal.org/docs/8/testing)
- [Workshop: Automated Testing and Test Driven Development in Drupal 8](https://github.com/opdavies/workshop-drupal-automated-testing)

Security policy
---------------

[](#security-policy)

It is important to have a way to report security issues safely and securely. Luckily this is something Drupal has done very well for many years, via the security team. We publish our distributions on drupal.org and opt in to the [security advisory policy](https://www.drupal.org/security-advisory-policy)..

See

### How to report a security issue

[](#how-to-report-a-security-issue)

If you discover or learn about a potential error, weakness, or threat that can compromise the security of Drupal, LocalGov Drupal or LocalGov Drupal Microsites, we ask you to keep it confidential and [submit your concern to the Drupal security team](http://drupal.org/node/101494).

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

[](#maintainers)

This project is currently maintained by:

- Andy Broomfield:
- Ekes:
- Finn Lewis:
- Maria Young:
- Mark Conroy:
- Stephen Cox:

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance53

Moderate activity, may be stable

Popularity47

Moderate usage in the ecosystem

Community37

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~25 days

Recently: every ~51 days

Total

81

Last Release

77d ago

Major Versions

1.0.1 → 2.1.92021-10-04

2.3.20 → 3.0.0-alpha12023-07-24

2.x-dev → 3.0.0-beta12023-09-04

2.3.22 → 3.0.02023-11-09

3.2.0-beta2 → 4.0.0-beta12025-09-23

PHP version history (3 changes)3.0.1PHP &gt;=8.1.0

3.2.0-alpha1PHP &gt;=8.1.0 || &gt;=8.3.0

4.0.0-beta1PHP &gt;=8.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd550678a915c9a6d451d08851556a1c866f8cc7c0e3f864b498a45d4d930577?d=identicon)[stephen-cox](/maintainers/stephen-cox)

![](https://www.gravatar.com/avatar/c215b54edbf914998f6f63747814fd96f117c2c6e1bb5ea0c0a0db24fd9b3901?d=identicon)[finnlewis](/maintainers/finnlewis)

![](https://www.gravatar.com/avatar/848d88262b2f9d984d12b55bd4a2e2f0e1d3c7abe9c63fc5cc13ecbab75cd19e?d=identicon)[ekes](/maintainers/ekes)

![](https://www.gravatar.com/avatar/be000424009f296e0d88bf9cda3b6701aae827ea4a2773c0a5dbbd78b8429afb?d=identicon)[andybroomfieldBHCC](/maintainers/andybroomfieldBHCC)

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

---

Top Contributors

[![finnlewis](https://avatars.githubusercontent.com/u/326588?v=4)](https://github.com/finnlewis "finnlewis (199 commits)")[![stephen-cox](https://avatars.githubusercontent.com/u/7189914?v=4)](https://github.com/stephen-cox "stephen-cox (136 commits)")[![ekes](https://avatars.githubusercontent.com/u/237186?v=4)](https://github.com/ekes "ekes (38 commits)")[![andybroomfield](https://avatars.githubusercontent.com/u/1467480?v=4)](https://github.com/andybroomfield "andybroomfield (32 commits)")[![markconroy](https://avatars.githubusercontent.com/u/2183332?v=4)](https://github.com/markconroy "markconroy (15 commits)")[![Adnan-cds](https://avatars.githubusercontent.com/u/50206849?v=4)](https://github.com/Adnan-cds "Adnan-cds (7 commits)")[![j4-m](https://avatars.githubusercontent.com/u/11015602?v=4)](https://github.com/j4-m "j4-m (7 commits)")[![millnut](https://avatars.githubusercontent.com/u/8024370?v=4)](https://github.com/millnut "millnut (6 commits)")[![tebb](https://avatars.githubusercontent.com/u/15068043?v=4)](https://github.com/tebb "tebb (5 commits)")[![danchamp](https://avatars.githubusercontent.com/u/261421?v=4)](https://github.com/danchamp "danchamp (5 commits)")[![alexburrows](https://avatars.githubusercontent.com/u/1036167?v=4)](https://github.com/alexburrows "alexburrows (4 commits)")[![rupertj](https://avatars.githubusercontent.com/u/326243?v=4)](https://github.com/rupertj "rupertj (3 commits)")[![tonypaulbarker](https://avatars.githubusercontent.com/u/4941711?v=4)](https://github.com/tonypaulbarker "tonypaulbarker (2 commits)")[![tanc](https://avatars.githubusercontent.com/u/76320?v=4)](https://github.com/tanc "tanc (2 commits)")[![waldoj](https://avatars.githubusercontent.com/u/656758?v=4)](https://github.com/waldoj "waldoj (1 commits)")[![alexwybraniec](https://avatars.githubusercontent.com/u/521536?v=4)](https://github.com/alexwybraniec "alexwybraniec (1 commits)")[![AWearring](https://avatars.githubusercontent.com/u/95761929?v=4)](https://github.com/AWearring "AWearring (1 commits)")[![lazysoundsystem](https://avatars.githubusercontent.com/u/67453?v=4)](https://github.com/lazysoundsystem "lazysoundsystem (1 commits)")[![MattOz-CDS](https://avatars.githubusercontent.com/u/88331824?v=4)](https://github.com/MattOz-CDS "MattOz-CDS (1 commits)")[![msayoung](https://avatars.githubusercontent.com/u/3852805?v=4)](https://github.com/msayoung "msayoung (1 commits)")

---

Tags

drupallocalgovlocalgovdrupal

### Embed Badge

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

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

###  Alternatives

[farmos/farmos

A web-based farm record keeping application.

1.3k7.1k1](/packages/farmos-farmos)[thunder/thunder-distribution

The thunder distribution

51661.9k3](/packages/thunder-thunder-distribution)[govcms/govcms

GovCMS Drupal Distribution

198102.2k3](/packages/govcms-govcms)

PHPackages © 2026

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