BNetArmory provide a complete feature for use the Blizzard API in PHP.