Removed deprecated method calls, changed \n to PHP_EOL
Typo to proper entity name
Added /vendor to gitignore