2017 © Pedro Peláez
 

composer-plugin wordpress-composer-setup

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

image

giofreitas/wordpress-composer-setup

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

  • Tuesday, May 15, 2018
  • by giofreitas
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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., (*1)

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., (*2)

Why wp-config.php?

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, (*3)

Usage

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

"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):, (*5)

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

We can also make use of some options from johnpbloch/wordpress-core-installer and composer/installers to change some default configurations:, (*6)

"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"]
    }
}

The Versions

15/05 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.1

 

by Gio Freitas

wordpress composer wp-config

15/05 2018

0.1

0.1.0.0

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

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.1

 

by Gio Freitas

wordpress composer wp-config