Support PHP 8.1
Prevent unnecessary files from distribution
.gitattributesto tell git what to ignore during exports. This will prevent GitHub from adding those files to an archive.
Composer will use the GitHub archive as distribution while downloading.
This prevents none necessary files on production systems. This also reduces file size of archive and should save disk space and other resources.