PHP code example of konstantin-dmitrienko / php-versions-parser
1. Go to this page and download the library: Download konstantin-dmitrienko/php-versions-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
konstantin-dmitrienko / php-versions-parser example snippets
$parser = new PHPVersionsParser();
// Current stable PHP version is: 8.1.3
echo "Current stable PHP version is: " . $parser->getCurrentStableVersion();
bash
$ composer