KANSAS CITY, Mo. — All-Star outfielder Alex Gordon agreed to a $72 million, four-year deal Wednesday to remain with the World Series champion Kansas City Royals, a person familiar with the details told The Associated Press.

Gordon must still pass a physical but an official announcement could come later in the day. The person spoke on condition of anonymity because the Royals had not announced the contract, which was first reported by MLB.com.

The agreement is the largest in franchise history, trumping $55 million deals given to Mike Sweeney and Gil Meche.

“We don’t want to get caught up in, ‘A player has earned this or earned that.’ It doesn’t matter if you’ve been here four days or 40 years, you have to produce each and every day,” general manager Dayton Moore said shortly after the World Series, when asked about signing Gordon long-term. “You’re going to be compensated for what you’re going to do, not what you’ve done.”

The second overall pick of the Royals in 2005, Gordon went through years of growing pains before finally becoming a star. He’s not only developed into one of the best defensive outfielders in the game with four Gold Gloves to his resume, but also a consistent hitter and clubhouse leader.

He was a big reason why the Royals won their first World Series since 1985 last season.

advertisement | advertise on newsday

Gordon declined an option for $13.75 million to test free agency, but several outfielders on the market — including Yoenis Cespedes and Justin Upton — may have depressed the 31-year-old’s value. Then there is Gordon’s recent injury history.

Gordon dealt with a wrist injury early last season, then sustained a serious groin injury that sidelined him much for the summer. He wound up playing in just 104 games, hitting .271 with 13 homers and 48 RBIs, though he did get voted to his third consecutive All-Star Game.

Gordon returned in time for the playoffs, where he hit just .241 while playing all 16 games. But it was his home run in Game 1 of the World Series off Mets closer Jeurys Familia that sent the game to extra innings, and allowed the Royals to win in 14 innings and take a 1-0 series lead.

Kansas City went on to beat the Mets in five games.

Notoriously frugal for most of a decade, the Royals have opened their checkbook in recent years.

Baseball videos

Along with bringing back Gordon, the team has re-signed pitcher Chris Young to an $11.5 million, two-year deal to solidify their rotation and brought back former closer Joakim Soria on a $25 million, three-year deal. They also exercised an $8 million option on All-Star closer Wade Davis and a $5.25 million option on All-Star shortstop Alcides Escobar.

With a number of players likely to get significant raises in arbitration, including All-Star outfielder Lorenzo Cain, third baseman Mike Moustakas, left hander Danny Duffy and outfielder Jarrod Dyson, the Royals could have another record payroll this season.

“Are we going to win the negotiations for the top guys? We’ll try,” Moore said. “But we’re not going to put ourselves in a position where we operate in a way that’s reckless, and puts us perhaps in a position where we can’t sign those young players to long-term contracts.”

Long-term contracts like the one Gordon just received.