David Beckham
David Beckham has been named as the highest earning footballer in the world. [Reuters]

David Beckham will earn almost £30m from his five-month stint at Paris St Germain, even though he is donating his salary to charity.

The former England captain announced will earn nothing from his salary, thought to be worth around £1.4m (€1.7m $2.2m) a year, with an unnamed local children's charity receiving the money.

However France Football claims Beckham, 37, will earn £1.1m in bonuses and a further £28.2m from sponsors during his time in the French capital.

The French magazine broke the news while revealing that Beckham is the highest-paid player in world football, ahead of superstars Lionel Messi and Cristiano Ronaldo.

Messi, who has been named football's World Player of the Year four times, is second in the list. He earns around £30m a year, of which around £11m comes from salary and bonuses, and the rest from advertising.

Ronaldo, who has been pipped by Messi to numerous team and individual prizes over recent years, has finished just behind the Argentine playmaker once again. Ronaldo's total earnings stand at around £25.6m, with a salary of £11.5m.

There is also a report on the highest paid managers in world football, with Real Madrid coach Jose Mourinho topping the list with earnings of £11.9 million a year.

Behind him is one of the men tipped to be a possible successor at Real Madrid, PSG boss Carlo Ancelotti, who earns £10.2 million. Another Italian, Marcello Lippi, earns £9.4m at Chinese club Guangzhou Evergrande.