Pickle installs PHP extensions easily on all platforms. so it can be called using pickle only. And finally you can add it to your path or copy it in /usr/local/bin or your favorite binary directory.
Training and validation data are specified on the command line with arguments like the following: --train-data "train.pfile,context=5,ignore-label=0:3-9,map-label=1:0 ...