Updated

Philadelphia Phillies starter Cole Hamels put his gloom in June behind him and tossed eight stellar innings on Tuesday.

His solid outing, plus a pair of two-run homers by Carlos Ruiz and John Mayberry, helped the Phillies down the Colorado Rockies, 7-2, in the opener of a three-game set.

Hamels (10-3) fanned seven and surrendered two runs on six hits and three walks. The 28-year-old lefty came into the contest with a 1-2 mark and a 6.75 ERA this month, while sporting a career 11-16 record in June.

"A lot of Cole Hamels tonight," Rockies manager Jim Tracy said. "He was really good."

Ruiz recorded two hits and three RBI, while Jimmy Rollins added a pair of hits and three runs scored for the Phillies, who snapped a six-game home losing streak and won just their third home tilt in their last 13 tries.

"It was a solid team effort," Hamels said. "When you go out and give up a run in the first inning, we were able to battle and get the big hits, get the runs. Mayberry came up huge with a big homer. Then having 'Chooch' (Carlos Ruiz) get that big homer, too. That was a good team effort."

Josh Outman (0-3) allowed four runs on five hits and two walks in 4 1/3 innings for Colorado, which has dropped 11 of its last 12 games.

Tyler Colvin's RBI single in the opening frame gave Colorado a 1-0 lead, but the Phillies plated a run in the third, two more in the fourth and another in the fifth to surge ahead.

Rollins worked a two-out walk in the third and scored on Placido Polanco's double down the third-base line.

In the fourth, Shane Victorino ripped a one-out single and Mayberry cracked a two-run shot to left two batters later for a 3-1 Phillies advantage.

Ruiz laced a run-scoring double into the left-field corner in the fifth to push the margin to 4-1.

The Rockies got a run back in the sixth on Chris Nelson's RBI single to center, but the Phillies padded their margin and pushed across three more in the seventh.

Hunter Pence registered an RBI groundout and Ruiz belted a two-run blast that just crept over the wall and into the flower bed in left, giving Philadelphia a 7-2 edge.

Game Notes

Mayberry has clubbed five round-trippers in his last six games...Earlier on Tuesday, Major League Baseball issued a 50-game suspension, effective immediately, to Philadelphia Phillies second baseman Freddy Galvis for a violation of its performance-enhancing drug policy. Galvis tested positive for clostebol, a synthetic anabolic steroid...This is the first time since May 17 that Rollins has scored three runs...Philadelphia is 21-4 over its last 25 tilts against Colorado.