I've tried several PHP indenting plugins, none of them seemed to care about that case where you have PHP and HTML in the same file so I made my own.
Use unbundle.vim or pathogen.vim and do the following:
cd ~/.vim/bundle
git clone https://github.com/dxw/vim-php-indent.git
Requires vroom:
vroom test/*.vroom
MIT - see COPYING.md