PHP code example of aedart / installed-version

1. Go to this page and download the library: Download aedart/installed-version 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/ */

    

aedart / installed-version example snippets



use Aedart\Installed\Version\Reader;

$reader = new Reader();

echo $reader->getVersion('amce/rocket-computer');

// Example output 1.22.4 ... 1.0.x-dev, or Unknown if unable to find / read package version