stackborg/wp-core-kits
Composer 安装命令:
composer require stackborg/wp-core-kits
包简介
WordPress Plugin Foundation — abstraction layer for building scalable, maintainable WordPress plugins. Provides typed wrappers for WP APIs, DI container, REST infrastructure, and plugin architecture primitives.
README 文档
README
Typed PHP abstraction layer over WordPress APIs for building scalable plugins.
Internal package. Maintained by Stackborg for its own products. Public use permitted under MIT — no external support or guarantees. Use at your own risk.
Requirements
- PHP 8.2+
- WordPress 6.0+
Install
composer require stackborg/wp-core-kits
What's Inside
| Module | Purpose |
|---|---|
WordPress\Options |
Cached options API |
WordPress\Hooks |
Typed hook registration |
WordPress\Sanitizer |
Centralized sanitization |
WordPress\Asset |
Auto-versioned script/style enqueue |
WordPress\Database |
Auto-prefixed, prepared-statement DB |
WordPress\Nonce |
CSRF token management |
WordPress\Transient |
Cached data with TTL |
WordPress\User |
Capability checks |
REST\Controller |
Declarative REST route registration |
REST\Response |
Typed response helpers |
Plugin\SingletonTrait |
Thread-safe singleton |
Plugin\ServiceProvider |
Modular plugin architecture |
Plugin\ProviderRegistry |
Ordered provider lifecycle |
Support\Arr |
Dot-notation array access |
Support\Str |
String case conversion |
| Addon System (opt-in) | |
Contracts\AddonInterface |
Addon contract |
Addon\AddonMeta |
addon.json parser + validation |
Addon\AddonRegistry |
Lifecycle — register, activate, deactivate, scan |
Addon\HasAddons |
Opt-in trait for plugins |
Addon\VersionResolver |
SemVer parse, compare, constraint matching |
Addon\AddonInstaller |
Download, verify, extract, install |
Addon\AddonRemover |
Deactivate, cleanup, delete |
Addon\AddonUpdater |
Version check, update with state preserve |
Addon\FeatureManager |
Feature gating — free/pro tier |
Addon\LicenseManager |
Encrypted license lifecycle |
Addon\LicenseGuard |
HMAC-SHA256 + AES-256-CBC security |
Addon\AddonApiClient |
Stackborg API communication |
Addon\AddonController |
REST endpoints for addon management |
Usage
See DEVELOPER_GUIDE.md for complete architecture guide and examples.
Documentation
| Document | Description |
|---|---|
| API Reference | Complete API docs for all facades, REST layer, and utilities |
| Developer Guide | Architecture, patterns, and WP.org submission checklist |
| Contributing | How to contribute to this project |
| Changelog | Version history |
| Security | Security policy and vulnerability reporting |
Development
composer install
composer check # phpcs + phpstan + phpunit
License
MIT — No warranty. No external support.
stackborg/wp-core-kits 适用场景与选型建议
stackborg/wp-core-kits 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 stackborg/wp-core-kits 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 stackborg/wp-core-kits 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-23