diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000000000000000000000000000000000000..b632e8af9eaa69eaa92333f2fb792ecae6e3c370
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,12 @@
+language: php
+
+# keep up-to-date with composer.json supported platforms:
+php:
+  - '7.1'
+  - '7.2'
+  - '7.3'
+
+before_script:
+  - composer install
+script:
+  - composer run verify
diff --git a/composer.json b/composer.json
index 7605491e2d440251a72d381694a47c8b2f6b2ceb..37cf94665a62735241374e8605b0e903f29e11b7 100644
--- a/composer.json
+++ b/composer.json
@@ -3,7 +3,7 @@
     "description": "Adds support for suppressed exceptions as known in Java. https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html#suppressed-exceptions",
     "type": "library",
     "require": {
-        "php": ">=7.1"
+        "php": "~7.1.0 || ~7.2.0 || ~7.3.0"
     },
 	"scripts": {
         "verify": [