Basic PHP API structure