wpsh/wp-plugin

There is no license information available for the latest version (0.0.1) of this package.

A WordPress plugin abstraction library

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/wpsh/wp-plugin

0.0.1 2019-01-25 11:03 UTC

This package is auto-updated.

Last update: 2025-09-25 21:51:16 UTC


README

Build Status Coverage Status

Work in progress!

Install

Add this library as a Composer dependency to your plugin.

composer require wpsh/wp-plugin

Usage

<?php

use WPSH\Plugin;

if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
	require( __DIR__ . '/vendor/autoload.php' );
}

$plugin = new Plugin\Plugin( __FILE__ );

// Now use it as a dependency for your own plugin.
$awesomePlugin = new AwesomePlugin( $plugin );
$awesomePlugin->init_hooks();

API

TODO: Build documentation from the docblock comments.

Credits

Created by Kaspars Dambis.