PHP auto-update class. Let the user upgrade their installations automatically.
Added php 8 support. Code optimizations.