承接 dehy/coverartarchive 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dehy/coverartarchive

最新稳定版本:v0.3.0

Composer 安装命令:

composer require dehy/coverartarchive

包简介

A PHP library for accessing the CoverArtArchive API

README 文档

README

This PHP library that allows you to easily access the Cover Art Archive API. Visit the Cover Art Archive page for more information.

Usage Example

<?php
use CoverArtArchive\CoverArt;
use GuzzleHttp\Client;

require __DIR__ . '/vendor/autoload.php';

try {
    $coverArt = new CoverArt(CoverArt::TYPE_RELEASE, '1e477f68-c407-4eae-ad01-518528cedc2c', new Client());
    $front    = $coverArt->getFrontImage();
    ?>
    <img src="<?=$front->getThumbnail('small')?>" />
    <img src="<?=$front->getThumbnail('large')?>" />
    <img src="<?=$front->getImage()?>" /><br />
    <?php

} catch (Exception $e) {
    print $e->getMessage();    
}

Requirements

PHP 7.2 and cURL extension.

统计信息

  • 总下载量: 116
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-18