diff --git a/.gitignore b/.gitignore
index 277cddd8d09b9276ca0531b7057eaaa802a9b4e7..b2987a3551cba33004736aabb6f57209bf4ae2af 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
-.env
-vendor
-composer.lock
+/vendor/
+/.env
+/composer.lock
diff --git a/composer.json b/composer.json
index 3439b8c08edd87e8007332bfaa034d744daa78e3..500a90568945985741d36a4960592ffe393597e4 100644
--- a/composer.json
+++ b/composer.json
@@ -31,13 +31,13 @@
     },
     "require": {
         "php": ">=7.2",
-        "composer-plugin-api": "^1.0.0",
+        "composer-plugin-api": "^1||^2",
         "lakedrops/composer-json-utils": "^1.4.0",
         "symfony/yaml": "^3.4||^4.4||^5.0"
     },
     "require-dev": {
-        "composer/composer": "^1.5.0",
-        "phpunit/phpunit": "^4.8.0"
+        "composer/composer": "^1||^2",
+        "phpunit/phpunit": "^8.4"
     },
     "minimum-stability": "dev",
     "prefer-stable": true,