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

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

justcoded/wordpress-composer-scripts
====================================

Composer scripts for WordPress installation

1.2.1(8y ago)15.0k2[4 PRs](https://github.com/justcoded/wordpress-composer-scripts/pulls)1MITPHPPHP &gt;=7.0

Since Nov 10Pushed 7y ago3 watchersCompare

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

READMEChangelog (5)DependenciesVersions (8)Used By (1)

 [ ![](https://camo.githubusercontent.com/11617a6b3124cea1b362999914c5489375aec28ff382e2176008b0e19d09a961/68747470733a2f2f732e772e6f72672f61626f75742f696d616765732f6c6f676f732f776f726470726573732d6c6f676f2d6e6f746578742d7267622e706e67) ](https://wordpress.org) [ ![](https://camo.githubusercontent.com/3dd157ffbaead04815b962bc6e34883b5837ab8c44980ebeef94b144a13895b5/68747470733a2f2f676574636f6d706f7365722e6f72672f696d672f6c6f676f2d636f6d706f7365722d7472616e73706172656e742e706e67) ](https://getcomposer.org/)

Composer scripts for WordPress Installation
===========================================

[](#composer-scripts-for-wordpress-installation)

Custom [Composer](https://getcomposer.org/) scripts for [WordPress Project Template](https://github.com/justcoded/wordpress-starter).

Installation
------------

[](#installation)

The only way to install this extension is through composer.

Either run

```
php composer.phar require --prefer-dist justcoded/wordpress-composer-scripts "*"

```

or add to require section:

```
"justcoded/wordpress-composer-scripts": "*"

```

After that add to scripts section:

```
  "scripts": {
    "wp:postInstall": "JustCoded\\WP\\Composer\\Environment::post_install",
    "wp:deployReadme": "JustCoded\\WP\\Composer\\Environment::deployment_readme",
    "wp:dbPrefix": "JustCoded\\WP\\Composer\\Environment::wpdb_prefix",
    "wp:salts": "JustCoded\\WP\\Composer\\Environment::salts",
    "wp:secure": "JustCoded\\WP\\Composer\\Security::admin_http_auth",
    "wp:theme": "JustCoded\\WP\\Composer\\Boilerplates::theme"
  }

```

Available scripts
-----------------

[](#available-scripts)

### wp:postInstall

[](#wppostinstall)

Copies .env.example and .htaccess.example to .env and .htaccess.

This script should be added to post-install and post-update hooks, so once you download the project - you will have configuration files in place. Just replace them with real values.

### wp:deployReadme

[](#wpdeployreadme)

This script is used inside create-project command hook. This script clean up default Project Template readme with documenation of real project deployment.

### wp:dbPrefix

[](#wpdbprefix)

Create unique db prefix (to improve security) and replace it inside .env.example and .env files.

By default this script should be added to create-project command hooks.

### wp:salts

[](#wpsalts)

Regenerate WordPress salts inside .env.example and .env files.

Useful if you want to disable all old open sessions / cookies.

### wp:secure

[](#wpsecure)

Allows to create wp-admin folder HTTP Auth password protection.

*\*Run this command without params to get command help*

#### wp:theme

[](#wptheme)

Creates a theme based on [JustCoded Theme Boilerplate](https://github.com/justcoded/wordpress-theme-boilerplate).

*\*Run this command without params to get command help*

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 73.3% 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 ~15 days

Total

5

Last Release

3050d ago

### Community

Maintainers

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

---

Top Contributors

[![mzhirov](https://avatars.githubusercontent.com/u/33665424?v=4)](https://github.com/mzhirov "mzhirov (33 commits)")[![aprokopenko](https://avatars.githubusercontent.com/u/1842666?v=4)](https://github.com/aprokopenko "aprokopenko (12 commits)")

---

Tags

composerinstallerwordpresscomposerwordpressstackwpcomposer-scriptsjustcoded

### Embed Badge

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

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

###  Alternatives

[justcoded/wordpress-theme-boilerplate

WordPress theme boilerplate with better code structure and OOP support.

563.9k1](/packages/justcoded-wordpress-theme-boilerplate)

PHPackages © 2026

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