add remaining php sample code