Stocker came through the ranks at FC Basel and was moved in to the full team ahead of the 2007/08 season after becoming one of the best midfielders in the reserve squad.
Stocker has played international football at various age levels, including Under-19s. He made his debut for Switzerland in Ottmar Hitzfeld's first match as manager, on 20 August 2008 in a 4–1 win over Cyprus at Stade de Genève. He also scored the opening goal of the match.
International goals
Scores and results list. Switzerland's goal tally first.