I read that if you use install / update / require with the --prefer-source flag (or write it in the config section in the config - preferred-install section), then the composer pulls all the project files, including documentation, tests, examples, etc. Therefore on production it is better to use --prefer-dist (for example, https://phptoday.ru/post/5-sovetov-dlya-raboty-s-composer write about it here)
But wherever I put this flag, with any command or in the config file - the whole package is always downloaded. For example, I tried chillerlan / php-database . Total:
With other libraries the same. Am I doing something wrong? Or did I understand everything wrong? Or maybe some libraries are downloaded absolutely always in one piece?
What should I do to download / or install files without unnecessary garbage?
