cardtechie/tradingcardapi-sdk-php
A PHP SDK for the Trading Card API that makes it easy to search cards, fetch card details, and integrate trading card data into Laravel or any PHP app with a clean, simple client. Ideal for building card databases, marketplaces, and collection tools.
tc_ read-only API key (TRADINGCARDAPI_API_KEY / TradingCardApi::withApiKey()), which significantly lowers the integration cost for read-heavy product surfaces like card search, catalog browsing, pricing displays, and collection lookup. Teams can validate TCG data use cases without first investing in an OAuth flow.tc_ keys are read-only and that write operations plus Internal\ calls still require OAuth. This directly supports roadmap sequencing—ship read-only catalog and discovery features now, defer authenticated write flows (e.g., collection mutations, marketplace actions) until OAuth onboarding and token management are scoped and resourced.api_key mode, which is a signal to schedule migration planning for any existing PAT-based integrations rather than treating them as permanently supported.Consider adoption when:
tc_ key lets you prove out a feature or demo before investing in authenticated flows.Look elsewhere or plan additional work when:
Internal\ SDK calls—these still need OAuth and are out of scope for tc_ keys.For executives: This is a pre-1.0 PHP SDK that wraps the Trading Card API and installs cleanly into our Laravel stack. The latest release adds a read-only API key mode, which means we can stand up TCG data features—search, catalog, pricing displays—without building authentication infrastructure first. That reduces the upfront cost and time-to-signal on any TCG-related initiative and gives us a cheap way to test demand before committing engineering headcount to authenticated, write-enabled flows.
For engineering: Version 0.3.4 adds an api_key auth mode for portal-issued tc_ keys, configurable via TRADINGCARDAPI_API_KEY or TradingCardApi::withApiKey(). Key constraints: tc_ keys are read-only, and write plus Internal\ calls still require OAuth. The README now flags the existing PAT mode as legacy, so any current PAT-based integration should have a migration ticket. Package targets PHP ^8.1 and Laravel 9–12. Because it is pre-1.0, pin the version in composer.json and treat minor bumps as potentially breaking until a 1.0 release lands.
Recommendation: Adopt for read-only TCG data features and prototypes now; scope OAuth separately for any write-dependent roadmap items; and pin the dependency version until the package reaches a stable major release.
How can I help you explore Laravel packages today?