PHILADELPHIA (AP) -- David Wright hit a long home run on his first major league swing in 133 days, Wilmer Flores went deep twice and the New York Mets set a franchise record with eight long balls in a 16-7 victory over the Philadelphia Phillies on Monday night.

New York Mets' David Wright, right, passes third base coach Tim Teufel, left, while scoring on a home run by Wilmer Flores in the fourth inning of a baseball game with the Philadelphia Phillies, Monday, Aug. 24, 2015, in Philadelphia. (AP Photo/Laurence Kesterson)
New York Mets' David Wright, right, passes third base coach Tim Teufel, left, while scoring on a home run by Wilmer Flores in the fourth inning of a baseball game with the Philadelphia Phillies, Monday, Aug. 24, 2015, in Philadelphia. (AP Photo/Laurence Kesterson)
loading...

Yoenis Cespedes, Juan Lagares, Travis d'Arnaud, Daniel Murphy and Michael Cuddyer also connected for the NL East leaders, who extended their advantage to a season-best 5 1/2 games over second-place Washington.

New York set a franchise record with 15 extra-base hits - seven doubles and eight homers. The teams tied an NL record with 11 combined homers.

Fresh off scoring 33 runs in a three-game sweep at Colorado, the Mets slugged their way back from a 7-2 deficit after Jacob deGrom's shortest career outing. The 2014 NL Rookie of the Year lasted just 2 2-3 innings and allowed a career-high seven runs on eight hits. His ERA rose from 1.98 to 2.29.

Sean Gilmartin (3-1) had four strikeouts in 3 1-3 scoreless innings to earn the win as the Mets (68-56) moved 12 games over .500 for the first time since finishing 89-73 in 2008.

Ryan Howard and Domonic Brown each hit a three-run homer and Cameron Rupp also took deGrom deep. But the Mets chased starter Adam Morgan and rallied against Hector Neris (2-1).

Wright returned to the lineup after missing more than four months with spinal stenosis. He drove a 1-1 pitch from Morgan into the second deck in left field leading off the second inning.

The 32-year-old Wright got a standing ovation from Mets fans at Citizens Bank Park when he ran onto the field, a louder ovation when he came to the plate and more cheers when he connected. He finished 2 for 4 with a walk, scored three runs and made two errors at third base.

The Mets continued their dominance over the Phillies with their ninth win in 10 games this year and 21st in the last 26 meetings. They are 11-3 in Philadelphia the last two seasons.

Howard hit a three-run shot the opposite way to left field to give the Phillies a 3-0 lead in the first.

After Wright hit a 435-foot homer, Rupp drove one 460 feet to straightaway center for his fifth homer in his last 12 games and a 4-1 lead.

Lagares lined an 0-2 pitch out to left in the third to cut it to 4-2. Brown answered in the bottom half to extend the lead to 7-2. Flores hit a two-run shot in the fourth and d'Arnaud followed with a solo homer.

Flores' three-run drive to left gave the Mets an 8-7 lead in the fifth. Cuddyer then went deep to make it 9-7. Cespedes connected with one out in the ninth, a shot off the facing of the second deck in left field for New York's eighth homer.

Flores made an excellent defensive play to end the eighth, a diving, backhanded stop on Howard's liner to shallow right. Howard stopped running and had turned toward the dugout when he realized Flores didn't make a clean catch, and was thrown out trying to beat it out.

The Mets had seven homers here on April 19, 2005. They had 13 extra-base hits at Arizona on Aug. 24, 2005.

New York set a team record with 51 total bases, seven more than the previous mark in that 2005 game against the Diamondbacks.

NL teams combined for 11 homers five other times. It last happened on May 17, 1979, at Wrigley Field when the Phillies hit five and the Cubs had six.

The major league record for most homers combined is 12.

POWER COMPANY

No more than five Mets had ever homered in one game before. ... The previous team to get 15 extra-base hits in one game was Cincinnati at Colorado on May 19, 1999.

TRAINER'S ROOM

Mets: 1B Lucas Duda is expected to return once he's eligible to come off the disabled list on Sept. 6, according to GM Sandy Alderson. Duda is out with a back injury, but a second opinion was favorable.

UP NEXT

Mets rookie Noah Syndergaard (7-6, 3.17 ERA) faces Phillies RHP Jerome Williams (4-9, 6.10). Syndergaard pitched 7 1-3 scoreless innings in a win in his only start vs. Philadelphia on May 27. Williams is 1-2 with a 4.26 ERA in six starts vs. the Mets.

© 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed. Learn more about our Privacy Policy and Terms of Use.

More From New Jersey 101.5 FM