By Tom Brennan

You just have to know that the gods are smiling on the Phillies and their playoff chances.

Even when they get pasted by the Marlins, as they were last night, the Braves and Reds lose too.

So the Phils are still 2 games behind Atlanta in NL East and 2 bhind Cincy for the second wild card.

Miguel Rojas had two hits and three RBIs during during a seven-run sixth inning and the Marlins won 10-3, stopping the Phillies’ six-game winning streak.

“We need to start a streak again,” Phillies manager Joe Girardi said. “We need to win games now. There’s not that many left.”

Miami snapped a 3-3 tie in the sixth, tagging PhilS starter Kyle Gibson and reliever JD Hammer.

Gibson (10-6) allowed eight runs and eight hits in 5 1/3 innings. The right-hander acquired from Texas July 30 struck out four and walked two.

The Marlins, last in the NL East, evened their season record to 7-7 against Philadelphia and 3-2 at home.

“Every now and then that happens and you run into a team, whether it’s the matchup or when they’re home or whatever it is but we’re still really confident,” Gibson said. “We’re excited to come out (Saturday) and get it going the right way again.”

Freddy Galvis gave the Phillies a fast start, leading off the game with a home run against Jesús Luzardo.

Luzardo was lifted after Matt Vierling’s tying double in the sixth. Luzardo allowed three runs, five hits, struck out three, walked two and hit a batter in 5 2/3 innings.

Vierling got the Phillies to 3-2 with his run-scoring triple in the second.

The Marlins erased an early deficit on Sánchez’s three-run shot in the first. Sanchez drove Gibson’s change-up over the wall in right center for his seventh homer of the season.