PHP code example of twc / gitversion-bundle

1. Go to this page and download the library: Download twc/gitversion-bundle 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/ */

    

twc / gitversion-bundle example snippets



use Twc\GitversionBundle\Provider\GitVersionProvider;

public function home(GitVersionProvider $gitVersionProvider)
{ 
    $version = $gitVersionProvider->get();
    dump($version->toString());
}