PHPackages                             calliostro/discogs-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. calliostro/discogs-bundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

calliostro/discogs-bundle
=========================

Ultra-lightweight Symfony bundle for the Discogs API — vinyl, music data &amp; integration made easy

v4.0.0(7mo ago)3764—3.1%3MITPHPPHP ^8.1CI passing

Since Aug 8Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/calliostro/discogs-bundle)[ Packagist](https://packagist.org/packages/calliostro/discogs-bundle)[ Docs](https://github.com/calliostro/discogs-bundle)[ RSS](/packages/calliostro-discogs-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (9)Versions (14)Used By (0)

⚡ Discogs Client Bundle for Symfony – Complete Music Database Access
====================================================================

[](#-discogs-client-bundle-for-symfony--complete-music-database-access)

[![Package Version](https://camo.githubusercontent.com/f1245b13867bc26894a6f2a4438d10098cd4431fc500941cbb182d678c59e62e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63616c6c696f7374726f2f646973636f67732d62756e646c652e737667)](https://packagist.org/packages/calliostro/discogs-bundle)[![Total Downloads](https://camo.githubusercontent.com/82d7e1774a03c476b4b60bdc38b7f94edba4f4445f74d5416bf4e58284d51a65/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63616c6c696f7374726f2f646973636f67732d62756e646c652e737667)](https://packagist.org/packages/calliostro/discogs-bundle)[![License](https://camo.githubusercontent.com/86565752a43dd886e9670b6fd022a9e7637d4cbc955f927187db8425da75c0c4/68747470733a2f2f706f7365722e707567782e6f72672f63616c6c696f7374726f2f646973636f67732d62756e646c652f6c6963656e7365)](https://packagist.org/packages/calliostro/discogs-bundle)[![PHP Version](https://camo.githubusercontent.com/acffb6ae1962992d26e4466782832787e79504a6250f80d732c4283458b9f497/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d626c75652e737667)](https://php.net)[![CI](https://github.com/calliostro/discogs-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/calliostro/discogs-bundle/actions/workflows/ci.yml)[![Code Coverage](https://camo.githubusercontent.com/addc14c371c524b691cb23b8998e30c991c70416430d1e80670dbf24c8d761ca/68747470733a2f2f636f6465636f762e696f2f67682f63616c6c696f7374726f2f646973636f67732d62756e646c652f67726170682f62616467652e7376673f746f6b656e3d33415445465946374130)](https://codecov.io/gh/calliostro/discogs-bundle)[![PHPStan Level](https://camo.githubusercontent.com/d117944b58da8146f96b4ef7403807610a20eeb3fbcaaaf95157bbcdad1686eb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e737667)](https://phpstan.org/)[![Code Style](https://camo.githubusercontent.com/d6e83f920d0c54ea87386b08cd4a24b7e078588bb3ba9fd0782684be1b1037b1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d53796d666f6e792d627269676874677265656e2e737667)](https://github.com/FriendsOfPHP/PHP-CS-Fixer)

> **🚀 SYMFONY INTEGRATION!** Seamless autowiring for the complete Discogs music database API. Zero bloat, maximum performance.

Symfony bundle that integrates the **modern** [calliostro/php-discogs-api](https://github.com/calliostro/php-discogs-api) into your Symfony application. Built with modern PHP 8.1+ features, dependency injection, and powered by Guzzle.

📦 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require calliostro/discogs-bundle
```

⚙️ Configuration
----------------

[](#️-configuration)

Configure the bundle in `config/packages/calliostro_discogs.yaml`:

```
calliostro_discogs:
    # Recommended: Personal Access Token (get from https://www.discogs.com/settings/developers)
    personal_access_token: '%env(DISCOGS_PERSONAL_ACCESS_TOKEN)%'

    # Alternative: Consumer credentials for OAuth applications
    # consumer_key: '%env(DISCOGS_CONSUMER_KEY)%'
    # consumer_secret: '%env(DISCOGS_CONSUMER_SECRET)%'

    # Optional: HTTP User-Agent header for API requests
    # user_agent: 'MyApp/1.0 +https://myapp.com'

    # Optional: Professional rate limiting (requires symfony/rate-limiter)
    # rate_limiter: discogs_api       # Your configured RateLimiterFactory service
```

**Personal Access Token:** You need to [get your token](https://www.discogs.com/settings/developers) from Discogs to access your account data and get higher rate limits. For read-only operations on public data, you can use anonymous access.

**Consumer Credentials:** For building applications that need OAuth authentication, [register your app](https://www.discogs.com/applications) at Discogs to get your consumer key and secret.

**User-Agent:** By default, the client uses `DiscogsClient/4.0.0 (+https://github.com/calliostro/php-discogs-api)` as User-Agent. You can override this in the configuration if needed.

🚀 Quick Start
-------------

[](#-quick-start)

### Basic Usage

[](#basic-usage)

```
