The beginnings of a Rails port to PHP