The 25 year-old joined the Hammers as a schoolboy making his first team debut in 2004 aged just 17, against Southend in the League Cup. He has since gone on to make 219 appearances for the east London club, scoring 26 goals.
|PREMIER LEAGUE LATEST
|25/1||West Ham are 25/1 with Bet365 to finish bottom of the Premier League this season
The former England Under-21 international remained at Upton Park despite the club being relegated at the end of the 2010-11 Premier League season, before helping his side back into the top flight via the Championship play-offs, and has now expressed his delight at signing a new deal with his boyhood club.
He told the club's official website: "I'm over the moon now it's all agreed and done.
"It was just a matter of getting things right for me and my family. Everyone knows I love playing at West Ham and I enjoy my football here, so it was just a case of coming to an agreement.
"I'm delighted now it's all signed and sealed. I feel like I've grown a lot as a player since my debut and I'm still only 25.
"Playing for West Ham has been a rollercoaster and I've been through two promotions, a relegation and a 'Great Escape', but it's been thoroughly enjoyable and I look forward to the next few years of my career here."