ixa/wordpress-starter
Composer 安装命令:
composer create-project ixa/wordpress-starter
包简介
WordPress starter project that works with Composer
README 文档
README
WordPress project starter that works with Composer and WP-CLI
Installation
$ composer create-project ixa/wordpress-starter <project-name> --prefer-dist
$ cd <project-name>
This command clones Ixa WordPress Starter and downloads all of its dependencies. It also ask your enviroment variables: database credentials and home_url.
If your database is ready you can install WordPress typing:
$ vendor/bin/wp core install --promt
If wp-cli prints a success message the installation is completed. You can use the PHP build in server to see your new site in htpp://localhost:1234
$ php -S localhost:1234
Configuration
In Ixa WordPress Starter, wp-config.php file is not meant to hold configuration all constants are set by Ixa WP-Config and are located in config folder.
.env.yml file
This file is dynamically created by Composer in every installation or update and must not be added to version control. The env.yml.dist is needed to tell Incenteev/ParameterHandler what variables are required and should not be modified.
Default Theme
Ixa WordPress Starter ships with a default theme that contains only the welcome message you see after installation and is set in wp-config.php using WP_DEFAULT_THEME constant. You can override to register your theme, this way, no database configuration is needed and the app is more portable.
WP-CLI Scaffold
Using WP-CLI you can create a new theme with the scaffold command
$ vendor/bin/wp scaffold _s <theme-name>
Then you have a new theme based on Underscores ready to start.
Child Themes
Since we are using Composer, the recommended way to use child themes is to register the parent theme as dependency in composer.json, just make sure the project type is wordpress-theme, so that Composer Installer knows where to install it.
Note that if you want to register the child theme using WP_DEFAULT_THEME constant you must define TEMPLATEPATH as this article suggests.
ixa/wordpress-starter 适用场景与选型建议
ixa/wordpress-starter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 77 次下载、GitHub Stars 达 7, 最近一次更新时间为 2013 年 10 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ixa/wordpress-starter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ixa/wordpress-starter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 77
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2013-10-18