Convert ruby ingester to PHP ingester