add ruby and php version; add test script; add readme example