php version of scnauth-client