The Phillies and shortstop Trea Turner have agreed to an 11-year, $300 million contract, sources told ESPN.