simple API with PHP class client API