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

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

simettric/wordpress-composer-installation
=========================================

434PHP

Since Nov 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Simettric/wordpress-composer-installation)[ Packagist](https://packagist.org/packages/simettric/wordpress-composer-installation)[ RSS](/packages/simettric-wordpress-composer-installation/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

WordPress Composer Installation
===============================

[](#wordpress-composer-installation)

Base configuration for install and deploy WordPress sites using composer

The structure for your WordPress instalation will be:

```
/config-dev.php
/config-prod.php.dist
/vendor
/public
/public/_wp        -> the WordPress installation dir (managed by composer)
/public/index.php  -> the WordPress bootstrap file
/public/wp-content -> the WordPress wp-content directory

```

It uses [WordPress Packagist](https://wpackagist.org/) in order to manage your plugins, themes and other php dependencies

How to start
------------

[](#how-to-start)

### Step1: Instalation

[](#step1-instalation)

**Requirements:**

- PHP5.4 or greater

**Create your project:**

```
composer create-project simettric/wordpress-composer-installation your_directory_name "dev-master"
```

**Create your configuration file:**

```
cp config-prod.php.dist config-dev.php

# Create the config-prod file if you want to work in production mode directly (not recommender)
# NOTE: If you do this, WordPress will use the config-prod.php file instead the config-dev.php
# cp config-prod.php.dist config-prod.php
```

**Set the WordPress permissions:**

```
# Configure the wp-content/uploads permissions
# https://codex.wordpress.org/Changing_File_Permissions
chmod -R 755 public/wp-content/uploads
```

### Step2: Configuration

[](#step2-configuration)

You need almost one of these configuration files:

**config-dev.php:**

This file must be used for dev environment. WordPress will use it only if there is not a config-prod.php file.

**config-prod.php:**

This file must be used for production environment only. Your probably want to create this file automatically during your deployment process.

#### Configure your WordPress url in config-prod and config-dev files:

[](#configure-your-wordpress-url-in-config-prod-and-config-dev-files)

```
//config-dev.php
define('_BASE_URL', 'http://localhost:8887');
```

#### Configure the rest of conventional wp-config parameters

[](#configure-the-rest-of-conventional-wp-config-parameters)

```
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');

/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/**#@+
* Authentication Unique Keys and Salts.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*
* @since 2.6.0
*/
define('AUTH_KEY',         'put your unique phrase here');
define('SECURE_AUTH_KEY',  'put your unique phrase here');
define('LOGGED_IN_KEY',    'put your unique phrase here');
define('NONCE_KEY',        'put your unique phrase here');
define('AUTH_SALT',        'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT',   'put your unique phrase here');
define('NONCE_SALT',       'put your unique phrase here');

/**#@-*/

/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix  = 'wp_';

/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the Codex.
*
* @link https://codex.wordpress.org/Debugging_in_WordPress
*/
define('WP_DEBUG', false);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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