Paperyard
ApplicationVersion.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Paperyard\Helpers;
4 
6 {
7  const MAJOR = 0;
8  const MINOR = 2;
9 
10  public static function get()
11  {
12  $commit_count = file_get_contents('/data/version');
13 
14  return sprintf('v%s.%s.%s', self::MAJOR, self::MINOR, $commit_count);
15  }
16 }