{"id":36979711,"url":"https://github.com/stephan-strate/php-cover-art-archive-api","last_synced_at":"2026-01-13T22:49:19.241Z","repository":{"id":37895823,"uuid":"297083141","full_name":"stephan-strate/php-cover-art-archive-api","owner":"stephan-strate","description":":open_file_folder: PHP 7.4/8.0/8.1 API Wrapper for CoverArtArchive, a joint project between the Internet Archive and MusicBrainz. The wrapper includes mapped models.","archived":false,"fork":false,"pushed_at":"2023-04-04T20:13:57.000Z","size":234,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-31T00:59:51.977Z","etag":null,"topics":["api-client","api-wrapper","cover-art-archive","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephan-strate.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["stephan-strate"]}},"created_at":"2020-09-20T13:33:16.000Z","updated_at":"2023-10-29T23:06:29.000Z","dependencies_parsed_at":"2023-02-18T10:32:10.561Z","dependency_job_id":null,"html_url":"https://github.com/stephan-strate/php-cover-art-archive-api","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/stephan-strate/php-cover-art-archive-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephan-strate%2Fphp-cover-art-archive-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephan-strate%2Fphp-cover-art-archive-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephan-strate%2Fphp-cover-art-archive-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephan-strate%2Fphp-cover-art-archive-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephan-strate","download_url":"https://codeload.github.com/stephan-strate/php-cover-art-archive-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephan-strate%2Fphp-cover-art-archive-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","api-wrapper","cover-art-archive","php"],"created_at":"2026-01-13T22:49:19.157Z","updated_at":"2026-01-13T22:49:19.225Z","avatar_url":"https://github.com/stephan-strate.png","language":"PHP","funding_links":["https://github.com/sponsors/stephan-strate"],"categories":[],"sub_categories":[],"readme":"![CoverArtArchive](https://raw.githubusercontent.com/metabrainz/metabrainz-logos/master/logos/Cover%20Art%20Archive/PNG/CoverArtArchive_logo_mini.png)\n\n# [CoverArtArchive](https://coverartarchive.org/) API Wrapper\n\nCoverArtArchive is a joint project between the [Internet Archive](https://archive.org/) and [MusicBrainz](https://musicbrainz.org/). Goal of this project is to make cover art images available to everyone.\n\nUsing this api wrapper, you can retrieve cover art images using the [release MBID](https://musicbrainz.org/doc/MusicBrainz_Identifier) of MusicBrainz.\n\nRecommended to use together with [stephan-strate/php-music-brainz-api](https://github.com/stephan-strate/php-music-brainz-api).\n\nInspired by [php-github-api](https://github.com/KnpLabs/php-github-api) and [php-tmdb](https://github.com/php-tmdb/api).\n\n## Installation\n\nUsing composer:\n```\n$ composer require stephan-strate/php-cover-art-archive-api php-http/guzzle7-adapter:^1.0 http-interop/http-factory-guzzle:^1.0\n```\n\nWhy `php-http/guzzle7-adapter:^1.0`? This library is decoupled from any http client using [HTTPlug](http://httplug.io/).\n\n## Usage\n\nFirst you want to create the client:\n```php\n$client = new \\CoverArtArchive\\Client();\n```\n\nUsing this client, you can retrieve all other objects/apis.\n\n### Repository\n\nThe repository implementation takes the decoded json response and maps it to a matching model. This is the preferred way of using the library.\n\n```php\n$repository = new \\CoverArtArchive\\Repository\\ReleaseGroupRepository($client);\n$repository-\u003ecoverArt('19e6209b-2ddc-30b8-9273-484bd075fe7b');\n```\n\n#### Images\n\nAs the CoverArtArchive serves, as the name implies, images. Therefore the repository can also return image resources.\n\n```php\n$repository = new \\CoverArtArchive\\Repository\\ReleaseRepository($client);\n$image = $repository-\u003ecoverArtFront('7416e707-94b5-3810-b6b8-4229ab2182ec');\n\n// outputs the image to the user\nif ($image !== false) {\n    header('Content-Type: image/png');\n    imagepng($image);\n    imagedestroy($image);\n}\n```\n\n### Api\n\nThe api implementation returns the raw json response of the endpoint. You might want to use the repository implementation instead to get the parsed objects.\n\n```php\n$release = $client-\u003erelease();\n$release-\u003ecoverArt('7416e707-94b5-3810-b6b8-4229ab2182ec');\n```\n\n## Contributing\n\n## Help \u0026 Donate\n\nI am very curious about projects that use my libraries. Please drop me a short message about what you use the library for. You can find my contact information on my profile (LinkedIn, E-mail).\n\nIf this project saved you time and money or you just appreciate what I am doing, please consider sponsoring me 😊\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephan-strate%2Fphp-cover-art-archive-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephan-strate%2Fphp-cover-art-archive-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephan-strate%2Fphp-cover-art-archive-api/lists"}