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

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

wodby/wordpress-composer
========================

Project template for WordPress projects with composer

0.1.0(5y ago)691.1k47[2 issues](https://github.com/wodby/wordpress-composer/issues)GPL-2.0+

Since Nov 20Pushed 3y ago6 watchersCompare

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

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

Composer Template for WordPress Projects
========================================

[](#composer-template-for-wordpress-projects)

This project template should provide a kickstart for managing your site dependencies with [Composer](https://getcomposer.org/).

This project consist of:

- WordPress core: [johnpbloch/wordpress-core-installer](https://github.com/johnpbloch/wordpress-core-installer)
- Repository  to install WordPress plugins and themes
- `composer/installers` to set custom paths for plugins and themes
- `drupal-composer/preserve-paths` to exclude paths for plugins and themes under version control
- `wodby.yml` that runs `composer install`. You can remove it if you're not using [Wodby](https://wodby.com)

Current WordPress core: `~5.0`

### Paths

[](#paths)

By default, wordpress core will be installed in `./web` directory. Plugins and themes will be installed in `./web/wp-content/plugins` and `./web/wp-content/themes`. Point your Apache vhost or similar to this project's `./web` directory.

### Usage

[](#usage)

First you need to [install composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).

> Note: The instructions below refer to the [global composer installation](https://getcomposer.org/doc/00-intro.md#globally). You might need to replace `composer` with `php composer.phar` (or similar) for your setup.

Start a new project:

```
composer create-project wodby/wordpress-composer some-dir --stability dev --no-interaction

```

The `composer create-project` command passes ownership of all files to the project that is created. You should create a new git repository, and commit all files not excluded by the .gitignore file.

### How to install WordPress plugins and themes?

[](#how-to-install-wordpress-plugins-and-themes)

With `composer require ...` you can download new dependencies to your installation.

```
cd some-dir
composer require wpackagist-plugin/wp-cfm

```

### How to manage my custom themes and plugins under version control?

[](#how-to-manage-my-custom-themes-and-plugins-under-version-control)

1. Exclude path to your plugin or theme from .gitignore. Example for theme under `web/wp-content/themes/my-custom-theme/`: ```
    !web/
    web/*
    !web/wp-content/
    web/wp-content/*
    !web/wp-content/themes/
    web/wp-content/themes/*
    !web/wp-content/themes/my-custom-theme/

    ```
2. Add the same path to your composer.json under `extra > preserve-paths`: ```
    "preserve-paths": [
      "web/wp-content/themes/custom"
    ]

    ```
3. Add your plugin/theme directory under version control
4. Run `composer install`. Composer will install WordPress core and keep your custom theme

### Deployment via Wodby

[](#deployment-via-wodby)

1. Create a new project.
2. Connect the repository to Wodby.
3. Deploy new app, choose WordPress stack, on the 2nd step of the form choose connected repository and enter `web` as Codebase dir.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% 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

2005d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a36bc53814d825959032118bb33b885f77eee8dc3e1f185e2e1c17f7399a0e0a?d=identicon)[PavelPrischepa](/maintainers/PavelPrischepa)

![](https://www.gravatar.com/avatar/0984ed7ded1bcea849939dbe21ded76b12aadff1d96359fb85b4d1e0498c3920?d=identicon)[chingis](/maintainers/chingis)

---

Top Contributors

[![csandanov](https://avatars.githubusercontent.com/u/1058233?v=4)](https://github.com/csandanov "csandanov (25 commits)")[![mantis4444](https://avatars.githubusercontent.com/u/10756367?v=4)](https://github.com/mantis4444 "mantis4444 (1 commits)")

---

Tags

composerwordpress

### Embed Badge

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

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

###  Alternatives

[johnpbloch/wordpress

WordPress is open source software you can use to create a beautiful website, blog, or app.

6079.5M471](/packages/johnpbloch-wordpress)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)

PHPackages © 2026

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