West Ham have announced the signing of former Manchester City midfielder Samir Nasri until the end of the season.

The 31-year-old Frenchman has signed with the Hammers after spending time training with the Premier League club.

Nasri, who last played for Antalyaspor in Turkey, was a free agent after serving a doping ban.

West Ham boss Manuel Pellegrini managed Nasri at City, with the pair helping the club to a Premier League title.

Pellegrini told the Hammers' website: "He is a player I obviously know well from our time together at Manchester City and I am happy to be working with him again.

"He has been working very hard here in recent weeks to build up his fitness and condition after a long period without playing, and he is now very determined to return to his best."