Search by

rtcamp / wp-primitives

rtcamparyanjasalaAnuragVasanwala

Contracts, loaders and utilities for building WordPress plugins and themes.

Package info

github.com/rtCamp/wp-primitives

Documentation

pkg:composer/rtcamp/wp-primitives

Statistics

Installs: 10 977

Dependents: 3

Suggesters: 0

Stars: 1

Open Issues: 4

v2.1.0 2026-10-01 23:06 UTC

README

License: GPL-2.0-or-later PHP 8.2+ Zero runtime dependencies

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

rtCamp