display pharext version
authorMichael Wallner <mike@php.net>
Mon, 30 Mar 2015 21:02:50 +0000 (23:02 +0200)
committerMichael Wallner <mike@php.net>
Mon, 30 Mar 2015 21:02:50 +0000 (23:02 +0200)
public/index.php

index 4832a229a794095e28c7d07b5c55797225b438b4..f132afb1ac77265ea3203ac59a45c48ebdd0db47 100644 (file)
@@ -79,6 +79,7 @@
                                                <th class="text-left">Package</th>
                                                <th class="text-left">Date</th>
                                                <th class="text-right">Size</th>
+                                               <th class="text-right">Pharext</th>
                                        </tr>
                                </thead>
                                <tbody>
 
                                                        ?>
                                                </td>
+                                               <td class="text-right">
+                                                       <?php
+                                                       $data = new Phar($phar);
+                                                       $meta = $data->getMetadata();
+                                                       if ($meta) {
+                                                               printf("v%s\n", $meta["version"]);
+                                                       } else {
+                                                               print "v2.0.1\n";
+                                                       }
+                                                       ?>
+                                               </td>
                                        </tr>
                                        <?php endforeach; ?>
 
                </div>
                <div class="footer">
                        <footer>
-                               &copy; 2015 m6w6, Michael Wallner 
+                               &copy; 2015 m6w6, Michael Wallner &mdash; Powered by <a href="//github.com/m6w6/pharext">pharext
+                                       <?php
+                                       require_once __DIR__."/../vendor/m6w6/pharext/src/pharext/Version.php";
+                                       printf("v%s\n", pharext\VERSION);
+                                       ?>
+                               </a>
                        </footer>
                </div>
        </body>