Some final touches on PHP API