PHPackages                             arraydev/wptoolkit - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. arraydev/wptoolkit

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

arraydev/wptoolkit
==================

WP Tool Kit is library for create wordpress plugin.

v1.0.7(1y ago)058MITPHPPHP ^8.1

Since Jan 20Pushed 4w ago1 watchersCompare

[ Source](https://github.com/bogdanovandreycode/WPToolkit)[ Packagist](https://packagist.org/packages/arraydev/wptoolkit)[ RSS](/packages/arraydev-wptoolkit/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (21)Used By (0)

WPToolKit
=========

[](#wptoolkit)

`WPToolKit` is a small toolkit for building WordPress plugins with OOP, attributes, and a lightweight DI container.

The library helps you register:

- REST routes
- actions
- ajax handlers
- cron jobs
- filters
- admin pages
- meta boxes
- shortcodes
- widgets
- roles
- options
- transients
- settings API
- nonces
- capabilities
- notices
- HTTP client
- lifecycle callbacks
- views

It is designed to avoid global helper state and internal static service locators, which makes runtime behavior more predictable when multiple plugins are active.

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

[](#requirements)

- PHP `^8.1`
- WordPress
- Composer

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

[](#installation)

```
composer require arraydev/wptoolkit
```

Philosophy
----------

[](#philosophy)

- No global `app()` helper
- No internal static container state
- Controllers can be instantiated through a local `ServiceFactory`
- Attribute-based bootstrapping for template-method style base controllers

Quick Start
-----------

[](#quick-start)

Minimal plugin bootstrap:

```
