solidbunch/starter-kit-theme
Composer 安装命令:
composer require solidbunch/starter-kit-theme
包简介
WordPress starter theme with a modern development stack for launching projects faster and easily
README 文档
README
WordPress starter theme with a modern development stack for launching projects faster and easily.
Requirements
How to use
Installation
- Create a new theme directory in wp-content/themes:
mkdir you-theme-dir && cd you-theme-dir
- Clone Starter Kit Theme:
git clone --depth=1 git@github.com:solidbunch/starter-kit-theme.git . && rm -rf .git
- Setup php dependencies:
composer install
- Setup node dependencies:
npm install
Build commands
- Build minified assets for production:
npm run prod
- Build assets with source maps for development:
npm run dev
- Start watcher with browser sync for development:
npm run watch
Structure
── config/ # Base theme configuration
── src/ # Main theme functionality files
├── Base/ # Base theme functions
│ └──Hooks.php # Registering hooks
│
├── Error/ # Theme additional error handlers, may be enable in config
├── Exception/ # Theme additional exceptions
│
├── Handlers/ # Theme hook handlers, main functionality
│ ├──Blocks/ # Blocks functionality
│ ├──CLI/ # WP CLI comands
│ ├──Meta/ # Registering meta fields for post types, taxonomis, users etc. Runs by Base/Hooks
│ ├──PostTypes/ # Registering custom post types with Taxonomies. Runs by Base/Hooks
│ ├──Settings/ # Theme settings creation.
│ │ └──ThemeSettings.php # Main theme settings. Look in wp-admin Theme Settings
│ ├──Optimization / # Removes unnecessary things, performance optimization
│ ├──Security / # Provides some security options. Disable xmlrpc, etc
│ ├──Back.php # wp-admin functions
│ ├──Front.php # Basic Front handlers
│ └──SetupTheme.php # Setup theme handlers
│
├── Helper/ # Helpers classes
│ ├──Assets.php # Helper to work with assets processed by webpack
│ ├──Config.php # Helper functions for theme configuration
│ ├──Logger.php # Logging helper
│ └──Utils.php # Other useful functions
│
├── Repository/ # Repositories, help to receive data from DB
│ # Classes by each post type
│
├── AbstractSingleton.php # Abstract Class for creating Singleton Classes
├── App.php # Application Singleton. Entrypoint
└── dev.php # Some developers functions for debug, logging, etc
── assets/ # Theme assets
├── build/ # The compiled assets
├── fonts/
├── images/
└── src / # Assets source files
├── js/
└── styles/
── parts/ # Custom template parts for the theme. Include things like headers, footers, and sidebars.
── patterns/ # Reusable patterns.
── templates/ # Templates, represent the overall document structure of the front-end.
Templates, parts, patterns are made up of block markup.
WordPress will automatically register files included in this folder.
── functions.php
── package.json
── composer.json
── screenshot.png
── style.css
── webpack.mix.js
── .editorconfig
── .gitignore
Blocks
Overview
Gutenberg Blocks in the blocks/ folder are loaded with the autoloader. That is, you can simply create a folder of a new block with the necessary files and this blocks will be automatically available.
Use StarterBlock as an example to create new blocks.
solidbunch/starter-kit-theme 适用场景与选型建议
solidbunch/starter-kit-theme 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 31, 最近一次更新时间为 2025 年 06 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「theme」 「wordpress」 「boilerplate」 「environment」 「starter」 「starter-kit」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 solidbunch/starter-kit-theme 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 solidbunch/starter-kit-theme 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 solidbunch/starter-kit-theme 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP class to extend when building a WordPress plugin allowing you to follow smart plugin setup standards.
Anax htmlform module.
A Bootstrap 4.x base theme for SilverStripe
Laravel 5.7 Boilerplate based on Bootstrap 4 and Tabler for Backend.
WordPress Plugin Framework
Lucency Theme
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 31
- 点击次数: 5
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-17