wpsh / wp-plugin
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
Requires (Dev)
This package is auto-updated.
Last update: 2025-09-25 21:51:16 UTC
README
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.