summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-03 06:49:06 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-03 09:54:50 -0400
commit50b7a1e8d2ab53ab08a84a704c1f4332756bcb2b (patch)
treed29ab6c06fb92e71edfc9d2576d0eebb06267cc4
parentf054c511e79101e1797d088ddb003bb323ab191d (diff)
downloadzipstream-php-50b7a1e8d2ab53ab08a84a704c1f4332756bcb2b.tar.bz2
zipstream-php-50b7a1e8d2ab53ab08a84a704c1f4332756bcb2b.zip
add examples/09-version
-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;