PHPackages                             trendwerk/bedrock - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. trendwerk/bedrock

AbandonedArchivedProject[Utility &amp; Helpers](/categories/utility)

trendwerk/bedrock
=================

A modern WordPress stack

1.7.3(9y ago)0120[1 issues](https://github.com/trendwerk/bedrock/issues)MITPHPPHP &gt;=5.6

Since Dec 18Pushed 9y ago3 watchersCompare

[ Source](https://github.com/trendwerk/bedrock)[ Packagist](https://packagist.org/packages/trendwerk/bedrock)[ Docs](https://github.com/trendwerk/bedrock)[ RSS](/packages/trendwerk-bedrock/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (29)Used By (0)

[Bedrock](https://roots.io/bedrock/)
====================================

[](#bedrock)

[![Packagist](https://camo.githubusercontent.com/43c0b95ecb968e1f4642fe19468e20caec6e20acc273b308b293b7efbd202ac6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6f74732f626564726f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/roots/bedrock)[![Build Status](https://camo.githubusercontent.com/ba29f56f1c12cf9487305601f7985fe1866028454bdf90531467626f0a8fb348/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f726f6f74732f626564726f636b2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/roots/bedrock)

Bedrock is a modern WordPress stack that helps you get started with the best development tools and project structure.

Much of the philosophy behind Bedrock is inspired by the [Twelve-Factor App](http://12factor.net/) methodology including the [WordPress specific version](https://roots.io/twelve-factor-wordpress/).

Features
--------

[](#features)

- Better folder structure
- Dependency management with [Composer](http://getcomposer.org)
- Easy WordPress configuration with environment specific files
- Environment variables with [Dotenv](https://github.com/vlucas/phpdotenv)
- Autoloader for mu-plugins (use regular plugins as mu-plugins)
- Enhanced security (separated web root and secure passwords with [wp-password-bcrypt](https://github.com/roots/wp-password-bcrypt))

Use [Trellis](https://github.com/roots/trellis) for additional features:

- Easy development environments with [Vagrant](http://www.vagrantup.com/)
- Easy server provisioning with [Ansible](http://www.ansible.com/) (Ubuntu 14.04, PHP 7, MariaDB)
- One-command deploys

See a complete working example in the [roots-example-project.com repo](https://github.com/roots/roots-example-project.com).

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

[](#requirements)

- PHP &gt;= 5.6
- Composer - [Install](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx)

Installation
------------

[](#installation)

1. Create a new project in a new folder for your project:

`composer create-project roots/bedrock your-project-folder-name`

2. Copy `.env.example` to `.env` and update environment variables:

- `DB_NAME` - Database name
- `DB_USER` - Database user
- `DB_PASSWORD` - Database password
- `DB_HOST` - Database host
- `WP_ENV` - Set to environment (`development`, `staging`, `production`)
- `WP_HOME` - Full URL to WordPress home ()
- `WP_SITEURL` - Full URL to WordPress including subdirectory ()
- `AUTH_KEY`, `SECURE_AUTH_KEY`, `LOGGED_IN_KEY`, `NONCE_KEY`, `AUTH_SALT`, `SECURE_AUTH_SALT`, `LOGGED_IN_SALT`, `NONCE_SALT`

If you want to automatically generate the security keys (assuming you have wp-cli installed locally) you can use the very handy [wp-cli-dotenv-command](https://github.com/aaemnnosttv/wp-cli-dotenv-command):

```
  wp package install aaemnnosttv/wp-cli-dotenv-command

  wp dotenv salts regenerate

```

Or, you can cut and paste from the [Roots WordPress Salt Generator](https://roots.io/salts.html).

3. Add theme(s) in `web/app/themes` as you would for a normal WordPress site.
4. Set your site vhost document root to `/path/to/site/web/` (`/path/to/site/current/web/` if using deploys)
5. Access WP admin at `http://example.com/wp/wp-admin`

Deploys
-------

[](#deploys)

There are two methods to deploy Bedrock sites out of the box:

- [Trellis](https://github.com/roots/trellis)
- [bedrock-capistrano](https://github.com/roots/bedrock-capistrano)

Any other deployment method can be used as well with one requirement:

`composer install` must be run as part of the deploy process.

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

[](#documentation)

Bedrock documentation is available at .

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

[](#contributing)

Contributions are welcome from everyone. We have [contributing guidelines](https://github.com/roots/guidelines/blob/master/CONTRIBUTING.md) to help you get started.

Community
---------

[](#community)

Keep track of development and community news.

- Participate on the [Roots Discourse](https://discourse.roots.io/)
- Follow [@rootswp on Twitter](https://twitter.com/rootswp)
- Read and subscribe to the [Roots Blog](https://roots.io/blog/)
- Subscribe to the [Roots Newsletter](https://roots.io/subscribe/)
- Listen to the [Roots Radio podcast](https://roots.io/podcast/)

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~64 days

Total

25

Last Release

3446d ago

PHP version history (5 changes)1.0.0PHP &gt;=5.3.0

1.1.0PHP &gt;=5.3.2

1.3.0PHP &gt;=5.4

1.3.7PHP &gt;=5.5

1.7.2PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ce3274dfde64e7afdd8a1c06a861dd0e65267afaba097fda8bad934877a471f?d=identicon)[haroldangenent](/maintainers/haroldangenent)

---

Top Contributors

[![swalkinshaw](https://avatars.githubusercontent.com/u/295605?v=4)](https://github.com/swalkinshaw "swalkinshaw (170 commits)")[![haroldangenent](https://avatars.githubusercontent.com/u/1481468?v=4)](https://github.com/haroldangenent "haroldangenent (61 commits)")[![retlehs](https://avatars.githubusercontent.com/u/115911?v=4)](https://github.com/retlehs "retlehs (51 commits)")[![austinpray](https://avatars.githubusercontent.com/u/2192970?v=4)](https://github.com/austinpray "austinpray (21 commits)")[![aaemnnosttv](https://avatars.githubusercontent.com/u/1621608?v=4)](https://github.com/aaemnnosttv "aaemnnosttv (8 commits)")[![alexsomeoddpilot](https://avatars.githubusercontent.com/u/5588412?v=4)](https://github.com/alexsomeoddpilot "alexsomeoddpilot (5 commits)")[![QWp6t](https://avatars.githubusercontent.com/u/2104321?v=4)](https://github.com/QWp6t "QWp6t (4 commits)")[![Foxaii](https://avatars.githubusercontent.com/u/1690407?v=4)](https://github.com/Foxaii "Foxaii (3 commits)")[![etcook](https://avatars.githubusercontent.com/u/2329397?v=4)](https://github.com/etcook "etcook (2 commits)")[![starise](https://avatars.githubusercontent.com/u/2684482?v=4)](https://github.com/starise "starise (2 commits)")[![fredriksundstrom](https://avatars.githubusercontent.com/u/1112071?v=4)](https://github.com/fredriksundstrom "fredriksundstrom (2 commits)")[![louim](https://avatars.githubusercontent.com/u/923718?v=4)](https://github.com/louim "louim (2 commits)")[![rasmusbe](https://avatars.githubusercontent.com/u/2124386?v=4)](https://github.com/rasmusbe "rasmusbe (2 commits)")[![BrandonShutter](https://avatars.githubusercontent.com/u/2022885?v=4)](https://github.com/BrandonShutter "BrandonShutter (2 commits)")[![shaneog](https://avatars.githubusercontent.com/u/130415?v=4)](https://github.com/shaneog "shaneog (1 commits)")[![ssteinerx](https://avatars.githubusercontent.com/u/43063?v=4)](https://github.com/ssteinerx "ssteinerx (1 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (1 commits)")[![DArtagan](https://avatars.githubusercontent.com/u/69908?v=4)](https://github.com/DArtagan "DArtagan (1 commits)")[![dvorakluk](https://avatars.githubusercontent.com/u/4776553?v=4)](https://github.com/dvorakluk "dvorakluk (1 commits)")[![eastmanenator](https://avatars.githubusercontent.com/u/70497?v=4)](https://github.com/eastmanenator "eastmanenator (1 commits)")

---

Tags

composerwordpressstackwpcapistrano

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[roots/bedrock

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

6.5k441.8k2](/packages/roots-bedrock)

PHPackages © 2026

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