Homec4science

Add Composer.gitignore for composer packages

Authored by Haralan Dobrev <hkdobrev@gmail.com> on Aug 19 2013, 16:38.

Description

Add Composer.gitignore for composer packages

Libraries/Projects using Composer for dependency management should include a .gitignore file like this.

It ignores the vendor folder which Composer uses for dependencies, classmaps and others. Composer keeps git repositories in this folder so it is cleaner if it is ignored.

[composer.lock should not be ignored.](http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file)

Commit your application's composer.lock (along with composer.json) into version control.

For your library you may commit the composer.lock file if you want to. This can help your team to always test against the same dependency versions. However, this lock file will not have any effect on other projects that depend on it. It only has an effect on the main project.

Details

Committed
Haralan Dobrev <hkdobrev@gmail.com>Nov 9 2013, 12:38
Pushed
aubortJul 2 2018, 16:12
Parents
rGITIGNOREb2c694d792c0: Merge pull request #576 from nysa/master
Branches
Unknown
Tags
Unknown

Event Timeline

Haralan Dobrev <hkdobrev@gmail.com> committed rGITIGNORE3932f1f0ce7a: Add Composer.gitignore for composer packages (authored by Haralan Dobrev <hkdobrev@gmail.com>).Nov 9 2013, 12:38