webdevstudios / oops-wp-demo
An example plugin to demonstrate usage of OOPS-WP structures and utilities.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 5
Forks: 1
Open Issues: 19
Type:wordpress-plugin
Requires
- php: ^7.2
- ext-json: ^1.6
- ext-libxml: ^7.2
- webdevstudios/oops-wp: ^0.3.0
- dev-master
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/tmpl-1.0.5
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/postcss-7.0.36
- dev-dependabot/npm_and_yarn/merge-deep-3.0.3
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/y18n-4.0.1
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.8
- dev-feature/rest-api
- dev-develop
This package is auto-updated.
Last update: 2024-11-05 10:03:44 UTC
README
This is a companion repository to the OOPS-WP project. It provides code examples for the various structures and utilities provided by the OOPS-WP library.
Requirements
This example requires that you have Composer and Git installed on your computer, and that you are also familiar with how to set up a local WordPress installation.
Installation
Ideally, your project would require this plugin via Composer:
composer require webdevstudios/oops-wp-demo
Depending on where your vendor directory is configured to install, you
would then require the Composer autoloader. One approach we like to take
is to configure Composer to install the vendor directory inside the mu-plugins
directory, and create
an autoloader.php
mu-plugin, so you wind up with the following directory
structure:
/mu-plugins/
- /vendor/
- autoloader.php
Inside autoloader.php, you would include your require statement:
<?php
// autoloader.php
require_once __DIR__ . '/vendor/autoload.php';
Alternately, you can simply clone this repo into your plugins directory,
change into the directory, then run composer install
there:
git clone https://github.com/webdevstudios/oops-wp-demo
cd oops-wp-demo && composer install
Once complete, you should be able to activate this plugin from the WordPress dashboard!