- Centralized logic related to fetching Valet version.
- Updating global dependencies now updates the version number of Valet
in the driver section.
- The latest version of Valet is now determined by checking Packagist.
(This only occurs when the app starts up.)
This makes it possible for PHP Monitor to request what the latest
version of Valet is. This isn't wired up to the UI currently, so
this feature isn't enabled yet.
To enable this feature, I would need to add:
- Conditional check for Valet updates (via setting)
- Decide when to run this check (either every X time and at launch)?
Additionally, PHP Monitor should be aware of its own uptime in order
to make periodic checks if the app hasn't been restarted. A check
should ideally occur every week or so if the app is not restarted.
The relevant app update check should also be adjusted to run in a very
similar way. How frequently the app checks for updates might also be
a setting but I don't want to query too often.
If you want to see the source code to the updater, you can find it here:
https://github.com/nicoverbruggen/phpmon-updater
Starting with version 6.0, the code of the updater will be included
in this repository.