Hello, the PHP version of the app is no longer in development. So before you spend too much effort trying to get it working I suggest you hold off as another solution is coming soon.
If you want the PHP copy to run you will need to add JSON support to your PHP install. That is the error you are getting.
Note: If you are using OSPi, the PHP app does not support the 2.x versions.