Update index.js

Add .php support.