承接 justcoded/wordpress-composer-scripts 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

justcoded/wordpress-composer-scripts

最新稳定版本:1.2.1

Composer 安装命令:

composer create-project justcoded/wordpress-composer-scripts

包简介

Composer scripts for WordPress installation

README 文档

README

Composer scripts for WordPress Installation


Custom Composer scripts for WordPress Project Template.

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

wp:postInstall

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

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

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

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

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

wp:secure

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

*Run this command without params to get command help

wp:theme

Creates a theme based on JustCoded Theme Boilerplate.

*Run this command without params to get command help

统计信息

  • 总下载量: 4.9k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-21