Released just over a month ago, PHP self-update system receives its first major update that brings new features and developer-oriented improvements.
At the end of April, we released PHP Auto Update Script – your one-stop solution to add version check features into your applications, create online installers, upgrade and downgrade current installations, setup databases, and more. If you follow us on CodeCanyon or Twitter, you know PHP self-update system got two minor updates so far. Today, we announce version 1.1 with developer-oriented improvements. Here’s the most important one:
Added: ausGetAllVersions function to get all available versions of specified product;
PHP auto update system has a function to automatically parse full information (version number, release date, changelog, and so on) of specified version. In short, author just calls ausGetVersion function with version number as function’s argument and gets an array with version details. If author doesn’t provide any argument, PHP Auto Update Script automatically returns the latest version available. Needless to say, programmer can execute this function inside a loop to fetch multiple versions at the same time.
However, there might be some rare situations when author needs to get all available versions at once. For example, if user skips too many updates, some authors might want him to download and apply incremental upgrade packages instead of one heavy upgrade package. This is where new ausGetAllVersions comes to help. Once called, it returns an array with sub-arrays of each version available, so developer can perform multiple operations faster. All versions are sorted by date for even easier upgrades.
Plus more tweaks and improvements.
Version 1.1 also brings nice improvements to code structure and user interface. For example, it contains a heavily revised automatic updates engine (both server and user modules) to improve overall performance. Just like Auto PHP Licenser, new engine retains a full backwards compatibility with older scripts. In other words, programmers don’t need to make a single change in existing code; new features are available out of the box.
Sure enough, we updated PHP auto update system documentation and bundled demo scripts to include working examples of new functions; check them out! Don’t have PHP Auto Update Script yet? Download it now and start updating your scripts right away!