Download the PHP package sourceout/lastfm-php-sdk without Composer

On this page you can find all versions of the php package sourceout/lastfm-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lastfm-php-sdk

Last.fm SDK for PHP

Latest Version

This repository contains library the allows you to access Last.fm platform from your PHP application.

For details into how authenticate and obtain API Keys read Getting Started under API Introduction

Read the official API Documents at https://www.last.fm/api/intro for more information.

Features

Undermentioned is a list of feature this library provides:

Installation

You can install this package via composer using this command:

Although, the default installation instruction recommends Guzzle Http client it is not the only client that can be used. Refer the following list php-http/client-implementation for choices of clients.

For more information on this approach refer this documentation.

Usage

You can also register your own custom provider instead of using the default, for e.g.

Additionally, although the package features auto-discovery of http package/client, you can also set your own Http Client as well, below are examples where you provide Guzzle6 instance.

Method 1

Method 2

Supported Methods

There is a long list of API(s) provided by LastFm (ref.: https://www.last.fm/api), undermentioned is the list of methods currently supported by this library:

Geo
Geo.getTopArtists Get the most popular artists on Last.fm by country
Geo.getTopTracks Get the most popular tracks on Last.fm last week by country

Tests

You can run the tests with:

Contributing

Please see CONTRIBUTING for details.

Security

In case, you discover any security related issues, please email [email protected] instead of using the issue tracker.

License

Please see License File for more information.


All versions of lastfm-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
php-http/client-implementation Version ^1.0
php-http/discovery Version ^1.0
php-http/httplug Version ^1.0
php-http/message-factory Version ^1.0
psr/http-message Version ^1.0
tightenco/collect Version ^5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sourceout/lastfm-php-sdk contains the following files

Loading the files please wait ....