first working version of phpSDK