PHPackages                             tacman/bedrock-civicrm - 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. tacman/bedrock-civicrm

ActiveProject

tacman/bedrock-civicrm
======================

A scriptable Symfony, Roots Bedrock, WordPress, and CiviCRM project template

v0.2.1(today)00MITPHPPHP &gt;=8.3

Since Aug 28Pushed todayCompare

[ Source](https://github.com/tacman/bedrock-civicrm)[ Packagist](https://packagist.org/packages/tacman/bedrock-civicrm)[ Docs](https://github.com/tacman/bedrock-civicrm)[ RSS](/packages/tacman-bedrock-civicrm/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (20)Versions (5)Used By (0)

Bedrock + CiviCRM
=================

[](#bedrock--civicrm)

A Composer project template for a scriptable WordPress and CiviCRM installation, with Roots Bedrock for dependency management and a minimal Symfony front controller for application routes.

WordPress owns authentication. CiviCRM owns contacts, households, relationships, addresses, memberships, contributions, events, attendance, and mailing preferences. CiviCRM's native `UFMatch` synchronization connects WordPress users to their corresponding CiviCRM contacts.

Create a site
-------------

[](#create-a-site)

```
composer create-project tacman/bedrock-civicrm my-site
cd my-site
```

The committed `.env` contains documented, non-production defaults. Put database credentials, site-specific values, and secrets in the ignored `.env.local`:

```
DB_NAME='my_site'
DB_USER='my_site'
DB_PASSWORD='database_password'
DB_HOST='127.0.0.1'
DB_PORT='3307'
WP_HOME='https://my-site.wip'
WP_SITEURL="${WP_HOME}/wp"
WP_TITLE='My organization'
WP_ADMIN_USER='admin'
WP_ADMIN_PASSWORD='change-me'
WP_ADMIN_EMAIL='admin@example.org'
```

For a self-contained local database, start the included MariaDB service. It binds only to `127.0.0.1:3307`; PHP and the web server remain native:

```
docker compose up -d
```

The simple command uses the committed `.env` database defaults. If `.env.local` overrides those database values, pass both files to Compose in the same order used by the application:

```
docker compose --env-file .env --env-file .env.local up -d
```

Then install and start the site:

```
./bin/install.sh
symfony server:start -d
```

The installer is idempotent: it installs WordPress, activates the Ollie theme, installs CiviCRM's schema and components, and activates the CiviCRM plugin. The generated CiviCRM settings and all environment secrets remain outside Git.

What is included
----------------

[](#what-is-included)

- PHP 8.3+
- WordPress managed through Roots Bedrock and Composer
- CiviCRM core, WordPress integration, assets, packages, and CLI tools
- an optional MariaDB 11.4 container—no containerized PHP, Apache, nginx, or WordPress
- Symfony 8.1 routes alongside WordPress
- WP-CLI development tooling
- an idempotent, command-line installation
- a read-only helper for resolving a WordPress user to its CiviCRM contact

```
$contactId = civicrm_contact_id_for_wp_user(get_current_user_id());
```

The helper reads CiviCRM's native mapping. It creates no parallel table, WordPress user metadata, Symfony user entity, or Doctrine model.

Application boundary
--------------------

[](#application-boundary)

Requests for `/hello`, `/api`, `/api/health`, and their `/sf/*` aliases are handled by Symfony. All other requests are handled by WordPress. This makes it possible to add narrow application or integration endpoints without coupling CiviCRM records to Symfony entities.

A future Grist connector should call CiviCRM APIv4 and treat CiviCRM contact IDs as its stable external identifiers. Grist should remain a workflow or reporting surface, not a second constituent system of record.

Requirements
------------

[](#requirements)

- PHP 8.3 or newer
- Composer 2
- MariaDB or MySQL
- Docker Compose (optional, for the included database-only service)
- Symfony CLI for the convenient local HTTPS server
- CiviCRM's required PHP extensions, including native BCMath during initial schema installation

If BCMath is installed as a separately loadable extension, set `CIVICRM_BCMATH_EXTENSION` in `.env.local`. Production should enable the extension normally.

Useful checks
-------------

[](#useful-checks)

```
composer validate
composer audit
composer test
./vendor/bin/wp core version
./vendor/bin/wp plugin list
```

Publishing as a project template
--------------------------------

[](#publishing-as-a-project-template)

This repository is a Composer package with `type: project` and is published on Packagist, making the short `composer create-project tacman/bedrock-civicrm ...` command available. The repository is also marked as a GitHub template, so GitHub's **Use this template** button can create an independent application repository without carrying this repository's history.

This project builds on [Roots Bedrock](https://roots.io/bedrock/) and follows CiviCRM's [Composer installation guidance](https://docs.civicrm.org/installation/en/latest/wordpress/composer/).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21b39551f92ed4143772c622f9e571589c5a72c96ab3c53fe67489ce0d83e806?d=identicon)[tacman1123](/maintainers/tacman1123)

---

Top Contributors

[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (4 commits)")

---

Tags

composersymfonywordpressproject templaterootsbedrockcivicrm

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tacman-bedrock-civicrm/health.svg)

```
[![Health](https://phpackages.com/badges/tacman-bedrock-civicrm/health.svg)](https://phpackages.com/packages/tacman-bedrock-civicrm)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.6k471.6k2](/packages/roots-bedrock)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

20256.6k4](/packages/civicrm-civicrm-drupal-8)[vinkla/wordplate

The WordPlate boilerplate

2.2k5.3k](/packages/vinkla-wordplate)[sulu/skeleton

Project template for starting your new project based on the Sulu content management system

29736.0k](/packages/sulu-skeleton)

PHPackages © 2026

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