Composer require PEAR package

How to safely commit vendor dir with php Composer