PHILADELPHIA (AP) Manager Don Mattingly likes the progress he is seeing from the rebuilding Marlins.

Phillies manager Gabe Kapler thinks he has the right pieces, too - even if that's a tough sell right now to frustrated fans in Philadelphia.

Rookie right-hander Jordan Yamamoto won for the third time in three career starts, Garrett Cooper and Brian Anderson hit consecutive homers, and Miami beat Philadelphia 6-4 Sunday for the Phillies' seventh straight loss.

JT Riddle homered, doubled and drove in two for Miami, which swept three games in Philadelphia for the first time since August 2009. The Marlins outhit the Phillies 16-4.

Miami has won 7 of 11 to improve to 31-46 after opening the season by losing 15 of 19.

''We like the way we've been playing,'' Mattingly said. ''We know we're young and still in a rebuild. You want to see improvement, and hopefully that's the trend we're setting that we're going to be moving forward the rest of the year.''

Jean Segura had two RBIs for Philadelphia, which has dropped 16 of 22 to fall 6 1/2 games behind the Braves in the NL East. The Phillies led Atlanta by 3 1/2 on May 29.

Boos poured down often during the game and were robust when Roman Quinn popped out foul to the catcher for the final out.

''We have the right personnel in the room,'' Kapler said. ''We win as a team, we lose as a team, we don't single anybody out. It's not how baseball is played. ... We don't quit on anyone - ever.''

Philadelphia has been outscored 43-15 and outhit 70-45 during the skid. The Phillies were swept for the second straight series and third this season. Philadelphia is 1-8 against the NL East in the last 10 days and will host the division-rival Mets for a four-game set beginning Monday.

''We're much better than we've played,'' outfielder Jay Bruce said. ''We're a good team, a very good team. This is going to turn.''

The 23-year-old Yamamoto pitched two-hit ball over five innings, allowing two runs and four walks on 99 pitches. He struck out seven and kept his ERA at 0.95.

Nick Anderson gave up a run in the ninth but recorded his first career save.

Cooper extended his hitting streak to 14 games with a first-inning RBI single off Enyel De Los Santos (0-1) that gave Miami a 1-0 lead. Yamamoto walked the first three batters in the bottom of the frame but escaped with just a 2-1 deficit after Segura's two-run single to left.

''Getting out of that inning with two (runs) was huge,'' Mattingly said.

Riddle put Miami in front for good in the second with a two-run shot to right. It was the third homer in four games for Riddle, who has five on the season.

''That definitely was a great turning point,'' Yamamoto said. ''It really helped me as a pitcher.''

The Marlins went up 4-2 in the third on a double-play groundout before back-to-back two-out drives in the fifth by Cooper and Anderson off Edgar Garcia put Miami ahead 6-2. Cooper has seven homers and Anderson has 10 this season.

De Los Santos, making his first start this season and third in his career, gave up four runs and seven hits in four innings.

GARRETT GOING STRONG

Cooper is batting .420 (21 for 50) with two homers, three doubles and seven RBIs during his streak. He also has reached base safely in 20 consecutive games.

DOUBLE TROUBLE

The Phillies turned five double plays, their most in a game since getting five in a 14-inning contest at Montreal on May 25, 1998.

TRAINER'S ROOM

Phillies: RHP Tommy Hunter (right forearm strain) pitched a scoreless inning of relief with one strikeout for Class A Clearwater on Sunday.

UP NEXT

Marlins: After a day off Monday, open a six-game homestand against Washington on Tuesday with RHP Trevor Richards (3-7, 3.54) facing Nationals RHP Max Scherzer (6-5, 2.62).

Phillies: Begin a four-game home series against the Mets on Monday with RHP Zach Eflin (6-7, 2.83) opposing New York LHP Steven Matz (5-5, 4.28).

---

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports

Copyright 2019 by STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.