aktuba / lastfm
last.fm API 客户端
1.2.2
2019-12-01 22:24 UTC
Requires
- php: ^7.1
- ext-json: *
- aktuba/json-mapper: ^0.1
- guzzlehttp/guzzle: ^6.0
- league/iso3166: ^2.1
- tightenco/collect: ^6.5
README
使用要求
- PHP 7.1 及以上版本
安装
$ composer require aktuba/lastfm
使用示例
<?php declare(strict_types=1); use aktuba\LastFm\LastFm; use aktuba\LastFm\Mappers\Artist\Info; require __DIR__.'/../vendor/autoload.php'; $lastFm = new LastFm(''); /** @var Info $info */ $info = $lastFm->artist()->getInfo('Cher'); var_dump($info->url);
更多示例在 examples
目录中