diff --git a/README.md b/README.md index 222e1a0..392146d 100644 --- a/README.md +++ b/README.md @@ -27,22 +27,36 @@ PHP Monitor is a universal application that runs natively on Apple Silicon **and * macOS 11 Big Sur or later * Homebrew is installed in `/usr/local/homebrew` or `/opt/homebrew` * Homebrew `php` formula is installed -* Laravel Valet 3 recommended (but compatible with Valet 2) +* Laravel Valet (works with Valet v2, v3 and v4) _You may need to update your Valet installation to keep everything working if a major version update of PHP has been released. You can do this by running `composer global update && valet install`. Some features are not supported when running Valet 2._ +For more information, please see [SECURITY.md](./SECURITY.md) to find out which version of the app is currently supported. + ## 🚀 How to install -Again, make sure you have **Laravel Valet** installed first. Once that's done, you can install via Homebrew (recommended), or may download the latest release on GitHub. +Again, make sure you have **[Laravel Valet](https://laravel.com/docs/master/valet)** installed first: + +```sh +composer global require laravel/valet +valet install +valet trust +``` + +Once that's done, you can install PHP Monitor via Homebrew (recommended), or (alternatively) you may download the latest release on GitHub. To install via Homebrew, run: - brew tap nicoverbruggen/homebrew-cask - brew install --cask phpmon +```sh +brew tap nicoverbruggen/homebrew-cask +brew install --cask phpmon +``` To upgrade your existing installation, run: - brew upgrade phpmon +```sh +brew upgrade phpmon +``` (You may need to run `brew update` or `brew update-reset` first in order to update the cask file if you ran a Homebrew operation recently.) @@ -127,12 +141,12 @@ brew tap shivammathur/php You may find that this tap is already in use: if you've used Valet before, it automatically uses this tap for legacy versions of PHP. -You can then install those older versions: - ```sh -brew install php@7.0 -brew install php@7.1 -... +brew install shivammathur/php/php@7.4 +brew install shivammathur/php/php@7.3 +brew install shivammathur/php/php@7.2 +brew install shivammathur/php/php@7.1 +brew install shivammathur/php/php@7.0 ``` **Always make sure to restart PHP Monitor after installing or upgrading PHP versions!** diff --git a/SECURITY.md b/SECURITY.md index 4543d3e..3e50d8b 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,7 +6,9 @@ Generally speaking, only the latest version of **PHP Monitor** is supported, exc | Version | Apple Silicon | Supported | Supported macOS | Deployment Target | Detected PHP Versions | Recommended Valet Version | | ------- | ------------- | ------------------ | ----- | ----- | ----- | ---- -| 6.x | ✅ Universal binary | ✅ Yes | Big Sur (11.0)
Monterey (12.0)
Ventura (13.0) | macOS 11+ | PHP 5.6—PHP 8.2 (w/ Valet 2.x)
PHP 7.0—PHP 8.2 (w/ Valet 3.x)
PHP 7.4-PHP 8.2 (w/ Valet 4.x) | 3.0 or higher recommended
2.16.2 minimum | +| 5.7 | ✅ Universal binary | ✅ Yes | Big Sur (11.0)
Monterey (12.0)
Ventura (13.0) | macOS 11+ | PHP 5.6—PHP 8.2 (w/ Valet 2.x)
PHP 7.0—PHP 8.2 (w/ Valet 3.x)
PHP 7.4-PHP 8.2 (w/ Valet 4.x*) | 3.0 or higher recommended
2.16.2 minimum | + +(*) Preliminary listing. Valet 4 hasn't been released yet and the versions of PHP Valet can work with might still change. ## Legacy versions diff --git a/phpmon/Common/Core/Constants.swift b/phpmon/Common/Core/Constants.swift index ad3a85e..1b069c0 100644 --- a/phpmon/Common/Core/Constants.swift +++ b/phpmon/Common/Core/Constants.swift @@ -14,9 +14,9 @@ struct Constants { If the installed version is older, a notification will be shown every time the app launches (with a recommendation to upgrade). - See also: https://github.com/laravel/valet/releases/tag/v3.1.10 + See also: https://github.com/laravel/valet/releases/tag/v2.16.2 */ - static let MinimumRecommendedValetVersion = "3.1.10" + static let MinimumRecommendedValetVersion = "2.16.2" /** * The PHP versions supported by this application.