diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000000000000000000000000000000000..cb40fe220b1bfa04971f446a7802c092846766c6
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,9 @@
+# Path-based git attributes
+# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
+
+# This way, the files would be available in the repository but it would not be downloaded when the package is required by another project.
+/.github            export-ignore
+/.gitignore         export-ignore
+/tests              export-ignore
+/phpunit.xml.dist   export-ignore
+/psalm.xml          export-ignore