"We had the early lead, lost the lead early. This was a test of character," Victorino said. "What kind of team really are we? I think we can be a great team. It's just a matter of us going out there and doing it."
Jonathan Papelbon pitched the ninth for his 13th straight save.
"That was a really good game for us," Philadelphia manager Charlie Manuel said. "The hits that we got, that was definitely a confidence booster for us. We'll be OK."
St. Louis narrowed the margin to 9-8 with a two-out homer by David Freese. His 10th homer of the season went 463 feet and is the second longest homer in the stadium's seven-year history.
"I'd say they did a great job of fighting and staying with it, not quitting," St. Louis manager Mike Matheny said. "That's something we've seen pretty consistently with this team. You just hate to have to fight that much."
Wigginton homered in the eighth to add an insurance run that proved valuable when Skip Schumaker hit a sacrifice fly in the bottom half of the inning.
Blanton, who gave up four homers in his last start, gave up two in 4 1/3 innings. He allowed 10 hits.
The Phillies led 6-0 after two innings against St. Louis starter Jake Westbrook.
Victorino hit into a fielder's choice to bring home a run, Wigginton singled up the middle to score Hunter Pence and Galvis hit a two-run single to make it 4-0.
"I try to be more relaxed up there," Galvis said. "I try to protect the whole home plate. It was the best game I've ever played, you know."
Victorino hit a two-out, two-run double in the second inning.
St. Louis fought back with a four-run third inning against Blanton. Westbrook led off with a single and scored on a groundout. Beltran hit an RBI single and Freese then doubled to drive in Beltran and later scored on a single by Molina.
It was Westbrook's shortest outing of the season. He allowed eight hits and three walks.
St. Louis' Allen Craig (left hamstring) took batting practice and fielded grounders for the first time since he went on the disabled list May 17. ... Cardinals 1B Lance Berkman's surgery on his injured right knee, originally scheduled for Thursday, was postponed until Friday due to a conflict in his surgeon's schedule in Houston. ... Jimmy Rollins rejoined the Phillies and hit leadoff. Rollins missed the last three games as his wife, Johari, gave birth to the couple's first child Sunday. C Erik Kratz was optioned to make room on the roster.