soberwp/bundle
最新稳定版本:1.0.2-p
Composer 安装命令:
composer require soberwp/bundle
包简介
WordPress plugin to enable plugin activation using a JSON, YAML or PHP file.
关键字:
README 文档
README
WordPress plugin to enable plugin activation using a JSON, YAML or PHP file.
Installation
Composer:
Recommended method/s;
Roots Bedrock and WP-CLI
$ composer require soberwp/bundle $ wp plugin activate bundle
$ composer require soberwp/bundle:1.0.2-p
Manual:
- Download the zip file
- Unzip to your sites plugin folder
- Activate via WordPress
Requirements:
- PHP >= 5.6.x
Setup
By default either bundle.json, bundle.yaml or bundle.php is used.
You can use a custom file for each using the filters below within your themes functions.php file;
add_filter('sober/bundle/file', function () { return get_stylesheet_directory() . '/plugin-dependencies.yaml'; });
Usage
Themes often require plugins in order to work — bundle leverages the popular tgmpa class to achieve plugin activation nags and actions.
Examples:
[
{
"name": "Disable Comments",
"slug": "disable-comments",
"required": false,
"force_activation": true
},
{
"name": "Models",
"slug": "models",
"source": "https://github.com/soberwp/models/archive/master.zip",
"external_url": "https://github.com/models/intervention",
"required": true,
"force_activation": true,
"force_deactivation": false
}
]
--- - name: Disable Comments slug: disable-comments required: false force_activation: true - name: Models slug: models source: https://github.com/soberwp/models/archive/master.zip external_url: https://github.com/models/intervention required: true force_activation: true force_deactivation: false
<?php return [ [ 'name' => 'Disable Comments', 'slug' => 'disable-comments', 'required' => false, 'force_activation' => true ], [ 'name' => 'Models', 'slug' => 'models', 'source' => 'https://github.com/soberwp/models/archive/master.zip', 'external_url' => 'https://github.com/models/intervention', 'required' => true, 'force_activation' => true, 'force_deactivation' => false ] ];
You can read tgmpa documentation for plugin activation options.
Updates
Composer:
- Change the composer.json version to ^1.0.2**
- Check CHANGELOG.md for any breaking changes before updating.
$ composer update
WordPress:
Includes support for github-updater to keep track on updates through the WordPress backend.
- Download github-updater
- Clone github-updater to your sites plugins/ folder
- Activate via WordPress
Other
- For updates follow @withjacoby
- You can also hire me for WordPress or frontend work
soberwp/bundle 适用场景与选型建议
soberwp/bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.13k 次下载、GitHub Stars 达 25, 最近一次更新时间为 2017 年 02 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 soberwp/bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 soberwp/bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 soberwp/bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Must-use plugin integrating WordPress with the Upsun platform: environment awareness, router-cache friendliness, safe preview clones, deploy migrations, Site Health checks, and a wp upsun CLI command.
Inertia.js server-side adapter for PHP. Handles full visits, Inertia XHR visits, asset-version 409 handshakes and partial reloads. Framework-agnostic, with transparent WordPress integration.
Adds Cache-Tag HTTP response headers for singular WordPress content and purges Cloudflare by tag when content changes.
AI Chatbot & Helpdesk Agent for WooCommerce. Connects your store to Egentify for AI-powered chat, order tracking, email, and ticketing.
MIDDAG's reference architecture for a WordPress plugin — composes the OSS framework/wordpress/ui libraries end to end.
Assets helper package for the Hybrid Core framework.
统计信息
- 总下载量: 4.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 25
- 点击次数: 16
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-11