Download the PHP package eduardovillao/wp-since without Composer
On this page you can find all versions of the php package eduardovillao/wp-since. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eduardovillao/wp-since
More information about eduardovillao/wp-since
Files in eduardovillao/wp-since
Package wp-since
Short Description Check WordPress plugin compatibility by analyzing used functions, classes, hooks and comparing against the minimum required WP version.
License MIT
Informations about the package wp-since
WP Since
Make sure your plugin works with the right WordPress version — automatically.
Scans your WordPress plugin to detect all used core symbols and validates them against their official @since versions for accurate compatibility checks.
✨ How It Works
Ever struggled to define the correct minimum WordPress version for your plugin?
Worried about accidentally using functions or APIs that don’t exist in declared minimum WP version?
wp-since
helps you avoid those headaches by automatically analyzing your plugin’s code and checking compatibility against real WordPress versions.
Here’s what it does:
- 🧠 Scans your plugin for used:
- Functions
- Classes
- Class methods (static and instance)
- Action and filter hooks
- 📖 Reads the declared Requires at least: version from your
readme.txt
- 🗂️ Compares those symbols with a version map built from WordPress core using
@since
tags - 🚨 Reports any used symbols that require a newer WP version than what’s declared
Example Output
Let’s say your plugin uses register_setting()
(introduced in WP 5.5
), but your readme.txt
declares compatibility with WordPress 5.4
:
Now imagine your code is fully aligned with your declared version:
Simple. Powerful. Automatic.
Because your plugin deserves reliable compatibility.
🚀 Usage
Requirements
- PHP 7.4+
- Composer
🛠️ Install via Composer (recommended)
▶️ Run the compatibility check
🧹 Ignore Files & Folders
By default, wp-since scans all .php
files in your plugin directory.
But what about files that don’t make it into your final plugin zip — like tests or dev tools? No worries — wp-since respects your ignore rules.
Supported ignore sources:
.distignore
.gitattributes
withexport-ignore
If any of those files are present, wp-since will automatically ignore the listed files or folders during analysis — just like svn export or plugin deployment.
Example: .gitattributes
Example: .distignore
These paths will be excluded from compatibility checks. This helps avoid false positives caused by test or development files.
📝 Inline Ignore
You can ignore specific lines from the scan by adding a special inline comment.
This is useful when you conditionally use a newer function but know it’s safe, like:
Only inline comments on the same line will be considered — comments above the line won’t trigger ignores.
🛠️ Coming Soon
- GitHub Action integration
- HTML/Markdown reports
- Export for CI/CD pipelines
📜 License
MIT © Eduardo Villão
Use freely, contribute gladly.