fivefifteen/wordup
Composer 安装命令:
composer require fivefifteen/wordup
包简介
A WordPress Deployer Recipe.
关键字:
README 文档
README
WordUp
A WordPress Deployer Recipe.
Table of Contents
Requirements
- PHP 8.1 or above
- Composer
Installation
composer require-dev fivefifteen/wordup
Setup
To get started, copy examples/deploy.php and examples/deploy.yml into the root of your project. You'll then want to update both of those files to meet your needs.
Configuration
Configuration options can be defined/updated in either deploy.yml or by using the add/set functions in deploy.php.
WordUp uses Deployer and it's Common Recipe at it's core so you'll want to familiarize yourself with both of those.
Configuration Options
These are options that are custom to WordUp. See the source of recipe/wordup.php to view the default values (as well as any built-in Deployer options that WordUp modifies).
db/credentials- A list of database credentialshost- The database hostname- The database nameuser- The database usernamepass- The database passwordprefix- The database tables prefixcharset- The database charsetcollate- The database collate
db/exports_dir- The name of the directory to save database exports todb/exports_path- The remote path to save database exports todb/keep_exports- If falsy, database exports will not be deleted from the remote server after downloadingdb/keep_local_exports- If truthy, database exports will be deleted from the local environment after importingtemplates/files- A list of.mustachefiles to be renderedtemplates/temp_dir- A temporary directory to store template files before uploading them to a remote serverwp/config/constants- An associative array of constants to be defined inwp-config.phpwp/config/extra_php- PHP code to be included inwp-config.phpwp/config/require- A list of files to be required bywp-config.phpwp/content_dir- The name of WordPress's content directorywp/content_path- The remote path to WordPress's content directorywp/home- The home URL for your WordPress websitewp/salts/temp_dir- A temporary directory to store generated saltswp/siteurl- The URL to the WordPress directorywp/uploads_dir- The name of the WordPress uploads directorywp/uploads_path- The remote path to the WordPress uploads directory
Tasks
Database Tasks
db:export- Exports the local databasedb:import- Imports a database export into the local databasedb:export:remote- Exports and downloads the remote databasedb:import:remote- Uploads a local database export and imports it into the remote databasedb:pull- Pulls remote database to localhost (invokesdb:export:remoteanddb:import)db:push- Pushes local database to remote host (invokesdb:exportanddb:import:remote)
Templates Tasks
templates:render- Renders mustache template files
Uploads Tasks
uploads:pull- Pulls uploads from remote to localuploads:push- Pushes uploads from local to remoteuploads:sync- Syncs uploads between local and remote
WordPress Tasks
wp:config:create- Generates a wp-config.php filewp:salts:php- Generates salts in PHP format and saves them to a filewp:salts:json- Generates salts in JSON format and saves them to a filewp:salts:yml- Generates salts in YML format and saves them to a file
Usage
dep <task> <stage>
Usage Examples
# Deploy to staging dep deploy staging # Export the database from production, download it, and import it into the local database dep db:pull production # Generate a wp-config.php file for my local environment dep wp:config:create localhost
License Information
MIT. See the license.md file for more info.
fivefifteen/wordup 适用场景与选型建议
fivefifteen/wordup 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 207 次下载、GitHub Stars 达 3, 最近一次更新时间为 2024 年 12 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cli」 「git」 「deploy」 「version」 「wordpress」 「upload」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fivefifteen/wordup 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fivefifteen/wordup 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fivefifteen/wordup 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easily manage git hooks in your composer config
blueways deployer recipes
The Laragoon utility package
A Highly Opinionated Symfony3/4 Deployer Recipe
MediaWiki extension that allows embedding external content, specified by URL, into your wiki pages
Nagios plugin to verify a git repository.
统计信息
- 总下载量: 207
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-05
