rtcamp / wp-primitives
Contracts, loaders and utilities for building WordPress plugins and themes.
Requires
- php: >=8.2
Requires (Dev)
- automattic/vipwpcs: ^3.0
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- phpcompatibility/phpcompatibility-wp: ^2.1
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^9.6
- squizlabs/php_codesniffer: ^3.10
- szepeviktor/phpstan-wordpress: ^2.0
- wp-coding-standards/wpcs: ^3.1
- wp-phpunit/wp-phpunit: ^6.9 || ^7.0
- yoast/phpunit-polyfills: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-04 11:55:08 UTC
README
Shared bases classes, loaders, and utilities for WordPress plugins and themes, distributed as the Composer package rtcamp/wp-primitives.
wp-primitives is a zero-dependency Composer library meant to be consumed by WordPress plugins and themes. It requires PHP 8.2+ and WordPress 6.5+, and has no Composer runtime dependencies.
The library provides:
- Shared base classes for WordPress objects like post types, blocks, and settings pages.
- Loaders to manage the lifecycle of these objects.
- Utility functions and traits to simplify common tasks in WordPress development.
Quick Start
composer require rtcamp/wp-primitives
For more details on requirements, installation, and usage, see Getting started.
Usage
See docs/index.md for detailed usage instructions.
Documentation
Contributing
This repository is maintained by rtCamp. Contributions are welcome and encouraged. See CONTRIBUTING.md.
License
GPL-2.0-or-later © rtCamp