OpenTripPlanner already exists:
http://www.opentripplanner.org
I've only played around with it but it seems very capable. It also has a pretty cool analysis tool that lets you see the changes in transit accessibility when a bus/train is removed, etc.
It looks like Graphhopper introduced an algorithm for transport routing this year [0], although there are still performance improvements to be made. Project OSRM seems not to be interested in adding this feature for now.
[0] https://github.com/graphhopper/graphhopper/pull/1018