This configuration handles indentation of PHP and JS inlined in

Based on,
and the default PHP indent script; you should install the
previous one first, then copy my .vim files to ~/.vim/indent.

php-orig.vim is a copy of the default script, commented out some
lines; php.vim is modified from html.vim, added calling PHP

By default top-level PHP blocks are indented to leftmost, and
inlined blocks are indented with an extra shiftwidth; closing
lines (?>) are always indented the same as starting lines
(<?php).  To tweak the behaviour, search for php in php.vim.

I'm too lazy to figure out which license to use, please use the
one you think appropriate.  My changes are public domain.