Fixed minor PHP static method warning

Also added deploy.sh script, which isn't working yet....