PHPackages                             bennothommo/wordpress-composer - 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. bennothommo/wordpress-composer

ActiveProject

bennothommo/wordpress-composer
==============================

Bootstraps a Wordpress website using Composer.

v1.0.0(5y ago)05MITPHP

Since Jun 30Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

WordPress Composer bootstrapper
===============================

[](#wordpress-composer-bootstrapper)

WordPress is hot garbage - no two ways about it - but given that sometimes we need to shake hands with the devil, this repo allows one to bootstrap an installation of WordPress entirely in Composer, and use modern configuration methods.

Configuration
-------------

[](#configuration)

The configuration is entirely controlled through environment variables, chiefly provided by an `.env` file (although you may use actual environment variables if you wish). This file will be created for you automatically if you use `composer create-project`. Otherwise, simply copy `.env.example` to `.env` and away you go.

Structure
---------

[](#structure)

The main structure of a bootstrapped site will be as follows:

- **content/:** contains the plugins and themes folder, along with any other plague-infested folders created by horribly written plugins.
- **wordpress/:** contains the normal files for a WordPress install.
- **index.php:** the entrypoint for public-facing pages.
- **cli:** a small utility program that sets up the encryption keys. It will also be able to install WP automatically at a future point. This is NOT the *WP-CLI* program.
- **.htaccess:** set up with the basic rewrite rules for WordPress.
- **index.php:** simple endpoint to load the site.
- **wp-config.php:** the heavily-modified config file that loads the configuration from the environment. You do not need to edit this file at all. Plugins probably will, but hey, that's the price we pay.

Installing
----------

[](#installing)

Once Composer has done its thing, and you've set up the configuration as required, and you've had enough of your favourite alcoholic beverage to prepare yourself, you can install the database tables by going to the following:

```
https:///wordpress

```

This should start up the installer.

License
-------

[](#license)

MIT License. No warranties, or takebacksies, provided.

Acknowledgements
----------------

[](#acknowledgements)

Thanks to the following for making this type of setup possible, allowing sanity to reign once more.

- [John P. Bloch](https://github.com/johnpbloch/wordpress)
- [WPackagist](https://wpackagist.org/)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2141d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15900351?v=4)[Ben Thomson](/maintainers/bennothommo)[@bennothommo](https://github.com/bennothommo)

---

Top Contributors

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

---

Tags

composerphpwordpress

### Embed Badge

![Health badge](/badges/bennothommo-wordpress-composer/health.svg)

```
[![Health](https://phpackages.com/badges/bennothommo-wordpress-composer/health.svg)](https://phpackages.com/packages/bennothommo-wordpress-composer)
```

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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