A PHP interface for the NS API