Added gitignores for PHP and Java repositories.