PHP has huge potential and it has grown in a lot of positive ways in recent years thanks to the nurtured ecosystem. Frameworks like Laravel and Symfony are really evolving the language into something that can compete with things like Rails. Sure there's still a huge mess of legacy code out there and there are a lot of poor quality applications that a generic PHP dev may encounter, but if you make an effort to write good code and use only good tools you can definitely avoid the PHP pain that a lot of people remember from <2010.
Here are some books that will introduce you to Laravel (http://laravel.com/), it's nothing like the PHP of <2010. https://leanpub.com/codebright https://leanpub.com/laravel https://leanpub.com/implementinglaravel https://leanpub.com/laravel-testing-decoded