swapping out ruby for php