SimpleAPI ported to PHP and Fatfreeframework