diff --git a/.gitignore b/.gitignore
index 880e9d4855b0217ffdba90cb385b9cece98f4b49..2ad685d06d6c0fcbd89a5a8303ae4fa53ab1b9c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,5 +3,4 @@ TAGS
 .\#*
 ChangeLog
 review
-test.php
-vendor
\ No newline at end of file
+test.php
\ No newline at end of file
diff --git a/vendor/.gitignore b/vendor/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..c96a04f008ee21e260b28f7701595ed59e2839e3
--- /dev/null
+++ b/vendor/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
\ No newline at end of file