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

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

giofreitas/wordpress-composer-setup
===================================

A composer plugin to setup your WordPress environment to be friends with composer.

0.2(7y ago)1241MITPHP

Since May 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/giofreitas/wordpress-composer-setup)[ Packagist](https://packagist.org/packages/giofreitas/wordpress-composer-setup)[ RSS](/packages/giofreitas-wordpress-composer-setup/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (1)

wordpress-composer-setup
========================

[](#wordpress-composer-setup)

A composer plugin to setup your WordPress environment to be friends with composer. It uses johnpbloch/wordpress package to install WordPress core files.

##### How?

[](#how)

This plugin will create the wp-config.php file with the necessary definitions to let WordPress to be suitable with composer. You just need to insert database details and this wordpress-composer-setup will handle the rest.

##### Why wp-config.php?

[](#why-wp-configphp)

The wp-config.php is the only non-core file that surely, will be loaded either in frontend or in admin. so its a good place to setup everything we need

##### Usage

[](#usage)

To Setup a WordPress installation including wp-config.php, add the following to your package's composer file:

```
"require": {
	"johnpbloch/wordpress": "4.9.5",
	"giofreitas/wordpress-composer-setup": "0.1"
}

```

You can manually set the site url in extra (do not define if you want it to be dynamic through all environments):

```
"extra": {
	"wordpress-site-url": "localhost"
}

```

We can also make use of some options from [johnpbloch/wordpress-core-installer](https://github.com/johnpbloch/wordpress-core-installer) and [composer/installers](https://github.com/composer/installers) to change some default configurations:

```
"extra": {
	"wordpress-install-dir": "wordpress"
	"installer-paths": {
	    "wp-content/themes/{$name}/": ["type:wordpress-theme"],
	    "wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
	    "wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"]
    }
}

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

2588d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8867107?v=4)[Sérgio Freitas](/maintainers/giofreitas)[@giofreitas](https://github.com/giofreitas)

---

Top Contributors

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

---

Tags

composerwordpresswp-config

### Embed Badge

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

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

###  Alternatives

[roots/bedrock

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

6.5k456.5k2](/packages/roots-bedrock)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1415.3M59](/packages/mnsami-composer-custom-directory-installer)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

545.9M113](/packages/automattic-jetpack-autoloader)

PHPackages © 2026

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