Adds fallback to php::input to fix #261.
Merge pull request #320 from LearningLocker/issue-261

Adds fallback to php::input to fix #261.