brianhenryie / bh-wp-plugin-meta-kit
Library with convenience functions for WordPress admin plugin meta.
Package info
github.com/BrianHenryIE/bh-wp-plugin-meta-kit
pkg:composer/brianhenryie/bh-wp-plugin-meta-kit
Requires
- php: >=8.2
- psr/log: ^1.1 || ^2.0 || ^3.0
- syntatis/wp-plugin-readme-parser: ^3.2
- wptrt/admin-notices: ^1.0
Requires (Dev)
- 10up/wp_mock: ^1.0
- alleyinteractive/composer-wordpress-autoloader: ^1.0
- antecedent/patchwork: ^2.1
- brianhenryie/color-logger: ^1.0
- brianhenryie/php-codecoverage-markdown: ^0.2.0
- brianhenryie/php-diff-test: *
- cweagans/composer-patches: *
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- jaschilz/php-coverage-badger: ^2.0
- johnpbloch/wordpress: *
- kporras07/composer-symlinks: dev-master
- lucatume/wp-browser: ^4.0
- mheap/phpunit-github-actions-printer: ^1.5
- phpcompatibility/phpcompatibility-wp: *
- phpstan/extension-installer: *
- phpstan/phpstan: *
- phpstan/phpstan-mockery: ^2.0
- phpstan/phpstan-phpunit: ^2.1
- phpunit/phpcov: *
- rector/rector: ^2.8
- squizlabs/php_codesniffer: *
- szepeviktor/phpstan-wordpress: *
- wordpress/wordpress: *
- wp-cli/dist-archive-command: dev-main
- wp-cli/i18n-command: ^2.4
- wp-cli/wp-cli-bundle: *
- wp-coding-standards/wpcs: *
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-21 07:18:37 UTC
README
A plugins.php helper library for WordPress plugins which are not hosted on WordPress.org. It adds links in row meta and uses readme.txt to populate the View details modal.
/** * Plugin Name: My Plugin * ... * Settings Link: options-general.php?page=my-plugin * GitHub Link: https://github.com/example/my-plugin */
Install
composer require brianhenryie/bh-wp-plugin-meta-kit
The library's files autoloader loads bootstrap.php which checks for and loads bootstrap2.php which infers the
settings to use with the library. You can delete bootstrap2.php and instantiate it directly yourself.
When using libraries in WordPress plugins, you need to isolate dependencies with a tool such as Strauss.
Features
In addition to the plugins.php Settings link and View details modal...
Activation notice
For a week after your plugin is activated, users who can manage options see a notice linking to its settings screen. It stops once someone visits that screen, and each user can dismiss it.
It needs the Settings Link header, or settings_url.
Dependencies notice
Tell the library what your plugin needs, and users who can deactivate plugins see a notice for each thing the site is missing, with a link to deactivate the plugin. Each user can dismiss it.
Dependencies cannot be read from the plugin's headers, so this needs your own settings, below.


