Simple php system for rest api from mysql to dojo-toolkit