2017 © Pedro Peláez
 

project wordpress-composer-scripts

Composer scripts for WordPress installation

image

justcoded/wordpress-composer-scripts

Composer scripts for WordPress installation

  • Wednesday, January 10, 2018
  • by justcoded
  • Repository
  • 3 Watchers
  • 0 Stars
  • 378 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 7 Versions
  • 11 % Grown

The README.md

, (*1)

Composer scripts for WordPress Installation


Custom Composer scripts for WordPress Project Template., (*2)

Installation

The only way to install this extension is through composer., (*3)

Either run, (*4)

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

or add to require section:, (*5)

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

After that add to scripts section:, (*6)

  "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

wp:postInstall

Copies .env.example and .htaccess.example to .env and .htaccess., (*7)

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

wp:deployReadme

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

wp:dbPrefix

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

By default this script should be added to create-project command hooks., (*11)

wp:salts

Regenerate WordPress salts inside .env.example and .env files., (*12)

Useful if you want to disable all old open sessions / cookies., (*13)

wp:secure

Allows to create wp-admin folder HTTP Auth password protection., (*14)

*Run this command without params to get command help, (*15)

wp:theme

Creates a theme based on JustCoded Theme Boilerplate., (*16)

*Run this command without params to get command help, (*17)

The Versions

10/01 2018

dev-master

9999999-dev

Composer scripts for WordPress installation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

wordpress wp stack composer justcoded composer scripts

10/01 2018

dev-develop

dev-develop

Composer scripts for WordPress installation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

wordpress wp stack composer justcoded composer scripts

10/01 2018

1.2.1

1.2.1.0

Composer scripts for WordPress installation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

wordpress wp stack composer justcoded composer scripts

27/11 2017

1.2

1.2.0.0

Composer scripts for WordPress installation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

wordpress wp stack composer justcoded composer scripts

21/11 2017

1.1.1

1.1.1.0

Composer scripts for WordPress installation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

wordpress wp stack composer justcoded composer scripts

21/11 2017

1.1

1.1.0.0

Composer scripts for WordPress installation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

wordpress wp stack composer justcoded composer scripts

10/11 2017

1.0

1.0.0.0

Composer scripts for WordPress installation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

wordpress wp stack composer justcoded composer scripts