wee/wordpress-project
Composer 安装命令:
composer create-project wee/wordpress-project
包简介
Starter project for WordPress
README 文档
README
After a standard WordPress installation, you have a setup that only has the most basic settings configured. There is a lot of settings you can tweak to improve security, performance and/or usability.
Here you can find an example project setup for common use cases.
The configuration can be used to install and update a WordPress site using
Composer. The setup already includes some useful
plugins. Change the composer.json file to fit your needs. Available plugins
for Composer can be found on WordPress Packagist. All
stable releases from wordpress.org should be
available.
A database must already be configured. The install procedure will not create a database for you.
To install WordPress, run:
composer create-project wee/wordpress-project --no-dev
To install WordPress with development plugins, run:
composer create-project wee/wordpress-project
If you did a git checkout, you can install WordPress with:
composer install --no-dev
To install WordPress with development plugins, run:
composer install
Composer will start to install and configure WordPress. It will ask for your database credentials and information for your site. After the install you should have a .env file that contains your database and WordPress settings.
To log into WordPress go to http://localhost/wp/wp-login.php (or the domain you defined).
After Composer has finished, WordPress will be available in the web folder.
You can change the path in composer.json. After the install you can remove
the src/web folder.
If you do not plan to update WordPress with Composer, you can remove the
composer.json and composer.lock files and src folder after the install.
See composer-full.json for a large selection of packages that could be useful.
If you intend to update WordPress with Composer only, add the following lines to the .env file.
This will disable auto-updates and updates from the WordPress admin.
WP_AUTO_UPDATE_CORE=0
WP_AUTOMATIC_UPDATER_DISABLED=1
WP_DISALLOW_FILE_MODS=1
See .env-reference for available settings / examples.
To update WordPress, including plugins and themes, run:
composer update --no-dev
Or with development plugins:
composer update
You can also use WP-CLI to update WordPress:
vendor/bin/wp core update
vendor/bin/wp core update-db
vendor/bin/wp language core update
vendor/bin/wp plugin update --all
vendor/bin/wp language plugin update --all
vendor/bin/wp theme update --all
vendor/bin/wp language theme update --all
Author
Reference
wee/wordpress-project 适用场景与选型建议
wee/wordpress-project 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 36 次下载、GitHub Stars 达 5, 最近一次更新时间为 2016 年 01 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 wee/wordpress-project 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wee/wordpress-project 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-21