use a Metadata class
[pharext/pharext] / build / Metadata.php.in
diff --git a/build/Metadata.php.in b/build/Metadata.php.in
new file mode 100644 (file)
index 0000000..db3ab81
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+namespace pharext;
+
+class Metadata
+{
+       static function version() {
+               return "@dev-master";
+       }
+
+       static function header() {
+               return sprintf("pharext v%s (c) Michael Wallner <mike@php.net>", self::version());
+       }
+
+       static function date() {
+               return gmdate("Y-m-d");
+       }
+
+       static function all() {
+               return [
+                       "version" => self::version(),
+                       "header" => self::header(),
+                       "date" => self::date(),
+               ];
+       }
+}