2.x (GovCMS with Drupal 9) is not in a stable state and only for testing purpose.
Caution: The database schema may change without hook_update_N being implemented. Usage and API may not be documented. Installing a new unstable release entails uninstalling the project, thereby losing all data. Only for those who want an early preview of the project. Not yet suitable for shared development.
GovCMS9 Slack channel: https://govcmschat.slack.com/archives/C01BD9B3V5W
GovCMS is the Drupal specific version of the GovCMS distribution.
GovCMS is an open source web content management and hosting service, based on Drupal and developed to help agencies create modern, affordable and responsive websites, whilst making it easier to collaborate and innovate. GovCMS also helps reduce the technology and compliance burden on government agencies. GovCMS is managed by the Australian Government Department of Finance.
For an easy, one-line, dev setup see 'Automated Default Dev Setup' wiki page.
GovCMS utilizes Composer to manage its dependencies. So, before using GovCMS, make sure you have Composer installed on your machine.
For best performance with composer 1.x, we recommend adding Prestissimo to your global Composer before installing GovCMS, as it enables dependencies to load in parallel, significantly reducing the install time.
composer global require "hirak/prestissimo:^0.3"
Composer will create a new directory called MY_PROJECT containing a docroot directory with a full GovCMS code base therein.
composer create-project --stability dev --prefer-dist govcms/govcms-project MY_PROJECT
Composer create-project is the same as doing a git clone, followed by a composer install.
git clone -b 2.x [email protected]:GovCMS/GovCMS.git
cd GovCMS
composer install
To develop on or patch against GovCMS, the source files should be downloaded and the project built.
Additional platform instructions are available in the wiki (https://github.com/GovCMS/GovCMS/wiki). If you can contribute more methods, please let us know.
- Apache, Nginx, Microsoft IIS or any other web server with proper PHP support
- MySQL 5.7.8+/MariaDB 10.3.7+/Percona Server 5.7.8+ or higher with PDO and an InnoDB-compatible primary storage engine
- PostgreSQL 10 or higher with the pg_trgm extension.
- SQLite 3.7.11 or higher
- PHP Version 7.4.* or higher
- Git
- Composer
If you're encountering some oddities, here's a list of resolutions to some of the problems you may be experiencing.
All contributions to GovCMS are welcome. Issues and pull requests may be submitted against the relevant GovCMS project on github where they will be addressed by the GovCMS team.
Because GovCMS is a Drupal distribution, modules and configurations are not added directly to the codebase. Rather, they are referenced within the composer.json file.
Any alterations to Drupal core or contributed modules must have an associated drupal.org issue filed against the project in question. Modifications should be made directly to the project in question and patched into GovCMS rather than made directly against GovCMS.
It is a requirement for any patches to GovCMS to pass all automated testing prior to manual review. The automated testing checks for PHP syntax, coding standards, build completion and runs behavioural tests. It is also desirable that additions to the codebase add behat tests to ensure no regressions occur once committed.
To submit a patch, the GovCMS project should be forked and changes applied to a branch on the forked repository. Once all changes are applied, a pull request between GovCMS and the branch of the fork may be created.