KnpLabs/php-lastfm-client — pull request #1 by adanlobato (2012-03-27 22:53:29+00:00)
Title: If service name is not lowercase, some API requests will fail. Fixed that.

According to the documentation we can access user's top tracks making a request like this:
http://ws.audioscrobbler.com/2.0/?method=user.gettoptracks&user=rj&api_key=b25b959554ed76058ac220b7b2e0a026

Unfortunately, the Lastfm\Service builds de url as follows:
http://ws.audioscrobbler.com/2.0/?method=User.getTopTracks&user=rj&api_key=b25b959554ed76058ac220b7b2e0a026

The webservice seems to be case sensitive in some cases, and this is one example,

I have modified the way service name is generated to make it lowercase.