Added support for php input filters, also added env method