Chase Utley and Domonic Brown each singled and Darin Ruf drew a walk from Rockies starter Jeff Manship leading off the fourth, loading the bases, and Cody Asche followed with an RBI single to break a scoreless tie.
Mayberry then came to the plate and belted a 2-1 pitch into the left field seats for a 4-0 lead.
Martin (2-2) held the Rockies to two runs on four hits, walking two and fanning six in his fourth major-league start.
Manship (0-3) was touched for five runs on six hits in a five-inning effort.
Troy Tulowitzki homered and Wilin Rosario drove in two runs for the Rockies.
Ray Liotta sues skin care company over use of likeness
Aaron Carter is still in love with Hilary Duff