mikealmond / coverartarchive
A PHP library for accessing the CoverArtArchive API
Installs: 403
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 2
Open Issues: 0
pkg:composer/mikealmond/coverartarchive
Requires
- guzzle/guzzle: 3.4.1
This package is auto-updated.
Last update: 2025-09-27 08:34:17 UTC
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 Guzzle\Http\Client; require __DIR__ . '/vendor/autoload.php'; try { $coverArt = new CoverArt('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
PHP5 and cURL extension.