Skip to content

Underpin-WP/berlindb-example

Repository files navigation

Underpin BerlinDB Example

This is an example plugin that shows you how to create a Books table in MySQL using BerlinDB and Underpin. It is based on the WordPress Example repostiory.

This plugin is intended for you to clone, hack, and learn how BerlinDB works with Underpin.

Important - You should only run this repository on a non-production environment!

To Use:

  1. Clone this repository in your WordPress install's plugins directory
  2. Run composer install
  3. Activate this plugin
  4. Visit a single post

You will see that the post content is replaced with a list of Harry Potter books, in order of publish.

From here, you can tinker with the query, the files that get saved, and everything else inside of the bootstrap.php file. There are many comments in this file, and should help

About

Example Plugin using BerlinDB and Underpin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published