document the pattern argument
make the pattern argument optional
remove composer.lock from version control

This is a dependency, putting the composer.lock under version control
makes no sense.