ActiveResource for the Yii PHP framework