Skip to content
Kolya Korobochkin edited this page May 19, 2018 · 11 revisions

WP Kit is a library for truly Object Oriented Programming with WordPress. It allows to work with Symfony, Twig, Composer.

The library includes many classes and interfaces which describes WordPress things such as options, post metas, admin pages, WP cron events, notices and more.

As a result you can create plugin or theme where no mess in code – options, notices, admin pages placed in individual folders and available as services from Dependency Injection container.

How to start?

If you a fan of learning by reading source code then you can have a look at Setka Editor and Setka Workflow plugins which uses WP Kit. Usage for themes is similar to plugins (but you need to use Theme class instead of Plugin for describe your theme).

Available components

  • Almost Controllers
    Handles AJAX and HTTP requests in controllers which uses Dependency Injection container and services.
  • Cron
    WordPress Cron events.
  • Options, Post and Term Meta, Transients
    Validate, save and retrieve any data with Data Transformers.
  • Pages, Notices and Meta Boxes
    Settings pages with Symfony Forms, Twig and more.
  • Plugins and Themes
    Main classes for plugins and themes which set up most of filters and actions.
  • Scripts & Styles
    Enqueue and register scripts and styles in single service.
  • Translations
    Load translations for your plugin and themes.
  • Uninstall
    Delete all data after your plugin or theme on uninstall.
  • Utils
    Helpful functions which can save time while developing.

Menu

DataComponents
Options, PostMeta, Transients.

Clone this wiki locally