PHP "rails-like" proof of concept