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

ActiveProject

wkhayrattee/wordpress-with-composer
===================================

This is a base setup for using WordPress with composer &amp; git workflow. See the readme of usage.

4.0.1(2y ago)501GPL-3.0PHP

Since Oct 28Pushed 2y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (10)Versions (27)Used By (0)

Using WordPress With Composer &amp; GIT workflow
================================================

[](#using-wordpress-with-composer--git-workflow)

This project is **production** ready.

If that matters, I have deployed several WooCommerce-based shops using this setup for the last 4yrs, as well as numourous WordPress blogs.

I obviously also use it on the high production shops/websites for my professional work-place. So far, no issue or constraints. It makes working and developing in WordPress a joy. It makes automated deploy very neat { helps achieve part of the goals for [12-factor principle](https://12factor.net/) }.

Now go rock your WordPress development workflow with confidence!

\## How To Use
--------------

[](#-how-to-use)

1. Use [Composer](https://getcomposer.org/) to setup the project:

```
$ composer create-project sevenphp/WordPresswithcomposer your_main_folder --no-dev --optimize-autoloader --prefer-dist -vv

```

> NOTE: if on DEV environment, omit the **--no-dev --optimize-autoloader --prefer-dist**

2. Setup your Config &amp; .env files:

Inside the folder **www/env**, do:

- rename *.env.example* to *.env* and adjust the values as per your context
- Depending on whether you are on DEV or PRODuction, rename *\_dev-sample.php* to *dev.php* and adjust the values as per your context

==&gt; Then point your webServer to: path/to/your\_main\_folder/www/public

3. Add any packages through Composer's **require** and enjoy building WordPress in a new flexible way, without using the dashboard - you control everything :)

\## Intro
---------

[](#-intro)

This is not a "project" (as in a framework) per se, but more of an attempt to adjust the structure of WordPress for PHP developers to be able to add &amp; use [Composer](https://getcomposer.org/) and [GIT](https://git-scm.com/) in their workflow.

I'm a PHP developer and like to stay current. I had to embark into DEV-ing with WordPress.

In so-doing, I now feel differently positive about coding with WordPress as well, although I have been using WordPress since 2007 like crazy at a functional level for online purposes (like blogging..etc).

While the code is not 5 star, WordPress in the philosophy is indeed amazing.

**Think about it**, it's the *only\_project* that has not (never?) made its user-base suffer from upgrading.

It is always highly easy to upgrade. That, in itself is incredible! Anyway, so I wanted to be able to use GIT &amp; a composer approach to my workflow and hence came up with this.

### \### Your Feedback

[](#-your-feedback)

If you use this project, I would love to hear from you as well. I may feature your project in here to showcase. So get in touch.

NOTE:

I know &amp; have seen *roots.io*, but it goes way too far in their approach - modifying the structure of WordPress, it's too risky of an approach. It's kinda overdoing it. (No offence, but that's how I feel)

### \### Objectives

[](#-objectives)

- Incorporate composer &amp; git workflow into my daily WordPress dev
- Make sure I do not divert too much from what WordPress advises in [Giving WordPress Its Own Directory](https://codex.WordPress.org/Giving_WordPress_Its_Own_Directory) and [Hardening WordPress](https://codex.WordPress.org/Hardening_WordPress)

### CHANGELOG

[](#changelog)

- Please see [CHANGELOG](CHANGELOG.md) for details.

### REFERENCE

[](#reference)

- [Your Guide to Composer in WordPress](http://composer.rarst.net/recipe/site-stack#composerjson)
-
-
- [Is moving wp-config outside the web root really beneficial?](http://WordPress.stackexchange.com/questions/58391/is-moving-wp-config-outside-the-web-root-really-beneficial/74972#74972)
- [pantheon-systems](https://github.com/pantheon-systems)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 98.9% 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 ~102 days

Recently: every ~208 days

Total

26

Last Release

924d ago

Major Versions

0.3.3 → 1.0.02019-05-11

1.5.0 → 2.0.02020-11-26

2.2.1 → 3.0.02021-11-29

3.1.0 → 4.0.02023-10-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e099126f576980e8508ea28e129bc361755285226ed201053528546aec356aa?d=identicon)[wkhayrattee](/maintainers/wkhayrattee)

---

Top Contributors

[![wkhayrattee](https://avatars.githubusercontent.com/u/7369626?v=4)](https://github.com/wkhayrattee "wkhayrattee (92 commits)")[![wakhay](https://avatars.githubusercontent.com/u/207004?v=4)](https://github.com/wakhay "wakhay (1 commits)")

---

Tags

wordpresswordpress-boilerplatewordpress-developmentwordpressuse composer with wordpresswordpress composercomposer wordpresswordpress with composer

### Embed Badge

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

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

###  Alternatives

[roots/bedrock

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

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

The WordPlate boilerplate

2.2k5.1k](/packages/vinkla-wordplate)[ronilaukkarinen/dudestack

A modern WordPress stack

1131.2k](/packages/ronilaukkarinen-dudestack)

PHPackages © 2026

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