summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/09-version.php7
-rw-r--r--src/ZipStream.php3
2 files changed, 10 insertions, 0 deletions
diff --git a/examples/09-version.php b/examples/09-version.php
new file mode 100644
index 0000000..6360f94
--- /dev/null
+++ b/examples/09-version.php
@@ -0,0 +1,7 @@
+<?php
+declare(strict_types = 1);
+
+require_once __DIR__ . '/../src/ZipStream.php';
+
+# print zipstream version
+echo \Pablotron\ZipStream\VERSION . "\n";
diff --git a/src/ZipStream.php b/src/ZipStream.php
index d7948bb..aa7e7e4 100644
--- a/src/ZipStream.php
+++ b/src/ZipStream.php
@@ -19,7 +19,10 @@ const VERSION = '0.3.0';
/**
* Version needed to extract.
+ *
* @internal
+ *
+ * @example "examples/09-version.php"
*/
const VERSION_NEEDED = 45;