SabreAMF is a AMF encoder/decoder writting in PHP. Supports AMF0 and 3.