The Phillies have reached an agreement with free-agent shortstop Jimmy Rollins on a three-year deal, according to a source. The contract includes a vesting option for a fourth season.