https://github.com/jenkoian/wp-plugin-trouble-detector
A composer plugin to detect potential trouble with WordPress plugins installed via composer.
https://github.com/jenkoian/wp-plugin-trouble-detector
composer-plugin wordpress wordpress-plugin
Last synced: about 2 months ago
JSON representation
A composer plugin to detect potential trouble with WordPress plugins installed via composer.
- Host: GitHub
- URL: https://github.com/jenkoian/wp-plugin-trouble-detector
- Owner: jenkoian
- License: mit
- Created: 2020-12-04T16:43:54.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-21T10:04:39.000Z (almost 4 years ago)
- Last Synced: 2024-04-08T09:06:25.474Z (about 1 year ago)
- Topics: composer-plugin, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 96.7 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WordPress Plugin Trouble Detector
[](https://travis-ci.com/jenkoian/wp-plugin-trouble-detector)Installing WordPress plugins via composer? Worried about the trepidations of installing plugins and there being clashes between any dependencies and your own?
> Don't know what I'm on about? This post does a good job of explaining https://inpsyde.com/en/package-management-in-wordpress-introduction-solutions/
## What this will do
This is a composer plugin that will inspect the wordpress plugins you are installing with composer and yell if it spots anything that could mean you're in for a world of pain.
## Installation
`composer req jenko/wp-plugin-trouble-detector --dev`
## Usage
Composer install as usual, if any package has anything to be concerned about, you will see yellow warnings in the output.
## What it yells about
* Plugin has a committed `vendor` directory
* Plugin has third party dependencies which clash with yours (includes support for wpackagist plugins)
* Plugin has third party dependencies which clash with dependencies of pre-existing plugins.## Troubleshooting
It should 'just work' but if for whatever reason it doesn't you may need to add the following to your `scripts` section of `composer.json`
```json
"scripts": {
"post-package-install": [
"Jenko\\WpPluginTroubleDetector\\Plugin::onPostPackageInstall"
]
}
```