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.

Maintainers

Package info

github.com/stackborg/wp-core-kits

pkg:composer/stackborg/wp-core-kits

Transparency log

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.7 2026-06-19 23:06 UTC

This package is auto-updated.

Last update: 2026-06-19 23:07:07 UTC


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.