PHP code example of rtablada / version-master
1. Go to this page and download the library: Download rtablada/version-master 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/ */
rtablada / version-master example snippets
php
$reader = new Rtablada\VersionMaster\GitHashReader();
echo $reader->getFullVersion(); // Outputs latest hash on git HEAD