PHPackages                             cubetech/sofa - 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. cubetech/sofa

ActiveProject

cubetech/sofa
=============

WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure (forked from roots/bedrock)

1.8.2(9y ago)0351MITPHPPHP &gt;=5.6

Since Dec 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/cubetech/sofa)[ Packagist](https://packagist.org/packages/cubetech/sofa)[ Docs](https://github.com/cubetech/sofa)[ RSS](/packages/cubetech-sofa/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelogDependencies (7)Versions (45)Used By (1)

[cubetech Sofa](https://github.com/cubetech/sofa)
=================================================

[](#cubetech-sofa)

[![Packagist](https://camo.githubusercontent.com/875c41528a2ad79c666e662302eee6d5b805fbfabbe5a1b376e1a08dac636e37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63756265746563682f736f66612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cubetech/sofa)[![Build Status](https://camo.githubusercontent.com/5e2fd205a7e7e79b7aba23fd9f12e8a6cbbfabf50c9b215dc54faded561acf53/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63756265746563682f736f66612e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cubetech/sofa)

cubetech Sofa is a modern WordPress stack that helps you get started with the best development tools and project structure. This project is a fork from roots/bedrock

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))

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 one method supported by cubetech to deploy Sofa sites out of the box:

- [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.

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

[](#contributing)

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

Community
---------

[](#community)

Keep track of development and community news.

- Follow [@cubetech\_ch on Twitter](https://twitter.com/cubetech_ch)
- Read and subscribe to the [Roots Blog](https://www.cubetech.ch/blog/)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 58.4% 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 ~25 days

Total

43

Last Release

3445d 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.4.5PHP &gt;=5.5

1.7.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/15ca4876c3e9fe7865b6c550606e12e3a77e1c9168fb0be652cd8e57e02bedc1?d=identicon)[acki](/maintainers/acki)

---

Top Contributors

[![swalkinshaw](https://avatars.githubusercontent.com/u/295605?v=4)](https://github.com/swalkinshaw "swalkinshaw (170 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)")[![BrandonShutter](https://avatars.githubusercontent.com/u/2022885?v=4)](https://github.com/BrandonShutter "BrandonShutter (2 commits)")[![louim](https://avatars.githubusercontent.com/u/923718?v=4)](https://github.com/louim "louim (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)")[![etcook](https://avatars.githubusercontent.com/u/2329397?v=4)](https://github.com/etcook "etcook (2 commits)")[![rasmusbe](https://avatars.githubusercontent.com/u/2124386?v=4)](https://github.com/rasmusbe "rasmusbe (2 commits)")[![remyvv](https://avatars.githubusercontent.com/u/2862815?v=4)](https://github.com/remyvv "remyvv (1 commits)")[![rslnk](https://avatars.githubusercontent.com/u/5638534?v=4)](https://github.com/rslnk "rslnk (1 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)")

---

Tags

composerwordpressstackwpvagrantsofacubetech

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/cubetech-sofa/health.svg)

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

###  Alternatives

[ronilaukkarinen/dudestack

A modern WordPress stack

1131.2k](/packages/ronilaukkarinen-dudestack)

PHPackages © 2026

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