1. Go to this page and download the library: Download einenlum/php-stack-detector 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/ */
einenlum / php-stack-detector example snippets
ortrabbit\StackDetector\Detector;
use fortrabbit\StackDetector\Factory\FilesystemDetectorFactory;
use fortrabbit\StackDetector\Factory\GithubDetectorFactory;
use fortrabbit\StackDetector\Enum\StackType;
// Local usage
$factory = new FilesystemDetectorFactory();
$detector = $factory->create();
$config = $detector->getFullConfiguration('/path/to/a/symfony/directory');
$phpConfiguration = $config->phpConfiguration;
// value from config platform php
$phpConfiguration->phpVersion->version; // 8.3
// value from te();
$config = $detector->getFullConfiguration('/path/to/a/symfony/directory');
$phpConfiguration = $config->phpConfiguration;
// value from config platform php
$phpConfiguration->phpVersion->version; // 8.3
// value from