π BlackSwanDev PHP Compatibility Checker
A powerful and user-friendly macOS Quick Action to check PHP compatibility for WordPress plugins and projects. Easily verify the minimum PHP version required for your code, right from Finder!
πΈ Sample report

π¦ Features
- π’ Check PHP compatibility for any folder containing PHP files.
- π Generate a detailed report with errors and warnings.
- π Automatically includes timestamp and PHP version used.
- π Opens the report in TextEdit, clean and formatted.
- π Notifications for start and completion of the scan.
π₯οΈ Installation (macOS)
1. Install Required Tools
Ensure you have PHP, Composer, and PHPCS installed:
# Install Homebrew if not installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install PHP (latest version)
brew install php
# Install Composer
brew install composer
# Install PHP CodeSniffer (PHPCS)
composer global require "squizlabs/php_codesniffer=*"
# Install PHPCompatibility Standard for PHPCS
composer global require "phpcompatibility/php-compatibility"
2. Verify Installations
Run these commands to ensure everything is installed:
php --version
composer --version
phpcs --version
βοΈ Setup Quick Action (Automator)
- Open Automator and create a Quick Action.
- Set βWorkflow receives currentβ to
foldersinFinder. - Add a Run Shell Script action.
- Shell:
/bin/bashPass Input:as arguments - Paste the following command:
/Users/$(whoami)/Documents/php_compatibility_check.sh "$@"
- Save the Quick Action as PHP Compatibility Check.
π How to Use
- Right-click any folder containing PHP files.
- Select Quick Actions > PHP Compatibility Check.
- Enter the desired PHP version (default:
7.1). - View the detailed report in TextEdit.
π€ Credits
Developed by Amirhossein Hosseinpour π€ Powered by BlackSwanDev and the PHPCompatibility Standard.
β οΈ Disclaimer & Warranty
This tool is provided as-is, without warranty of any kind, express or implied. The developer assumes no responsibility for any issues arising from the use of this tool.
π License
This project is licensed under the MIT License. See the LICENSE file for details.
π‘ Enjoy effortless PHP compatibility checks! If you find this tool useful, βοΈ star the repo and share it with others!