PHPackages                             bmd/wp-framework - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. bmd/wp-framework

ActiveLibrary[Framework](/categories/framework)

bmd/wp-framework
================

Generic WordPress framework plugin

0.2.9(2mo ago)0278↓88.9%GPL-2.0-or-laterPHPCI passing

Since Apr 22Pushed 2mo agoCompare

[ Source](https://github.com/bob-moore/WP-Framework)[ Packagist](https://packagist.org/packages/bmd/wp-framework)[ RSS](/packages/bmd-wp-framework/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (10)Versions (11)Used By (0)

WP Framework
============

[](#wp-framework)

[![PHPUnit](https://github.com/bob-moore/WP-Framework/actions/workflows/phpunit.yml/badge.svg?branch=main)](https://github.com/bob-moore/WP-Framework/actions/workflows/phpunit.yml)[![PHPStan](https://github.com/bob-moore/WP-Framework/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/bob-moore/WP-Framework/actions/workflows/phpstan.yml)[![PHPCS](https://github.com/bob-moore/WP-Framework/actions/workflows/phpcs.yml/badge.svg?branch=main)](https://github.com/bob-moore/WP-Framework/actions/workflows/phpcs.yml)

A small Composer library for bootstrapping WordPress plugins and themes with a PHP-DI service container, auto-mounted controllers, context-aware asset loading, and shared path/URL helpers.

The framework is intentionally light: it does not own routing, templating, build tooling, or plugin headers. It gives a package a predictable lifecycle and a few reusable services so feature code can stay in small classes.

Requirements
------------

[](#requirements)

- PHP 8.1 or newer
- WordPress
- Composer

Installation
------------

[](#installation)

Install the package with Composer:

```
composer require bmd/wp-framework
```

Then load Composer's autoloader from your plugin or theme entrypoint:

```
