PHPackages                             viktoras/scryfall - 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. [API Development](/categories/api)
4. /
5. viktoras/scryfall

ActiveLibrary[API Development](/categories/api)

viktoras/scryfall
=================

Scryfall.com API client

v0.6(4y ago)020MITPHPPHP ^7.2||^8.0CI failing

Since Apr 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/viktoras25/scryfall)[ Packagist](https://packagist.org/packages/viktoras/scryfall)[ RSS](/packages/viktoras-scryfall/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (7)Versions (6)Used By (0)

Scryfall.com API Client
=======================

[](#scryfallcom-api-client)

[![Build Status](https://camo.githubusercontent.com/4a47def8bd5839264858c0bd9f3741385c148ef8d505d75753619133ea406584/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f76696b746f72617332352f7363727966616c6c2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/viktoras25/scryfall/build-status/master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/c3525e044d994cc78d97029744fd2946cdac6796a7d7c416579314e4b4e4711b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f76696b746f72617332352f7363727966616c6c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/viktoras25/scryfall/?branch=master)

Installation
------------

[](#installation)

`composer require viktoras\scryfall`

Usage
-----

[](#usage)

You need a [PSR-18](https://www.php-fig.org/psr/psr-18/) compatible HTTP Client (e.g. [php-http/curl-client](https://github.com/php-http/curl-client)) and a [PSR-17](https://www.php-fig.org/psr/psr-17/) compatible RequestFactory (e.g. [Nyholm/psr7](https://github.com/Nyholm/psr7)).

Example Request:

```
use Http\Client\Curl\Client as HttpClient;
use Nyholm\Psr7\Factory\Psr17Factory as Psr17FactoryAlias;
use Viktoras\Scryfall\Client;

$baseUrl = 'https://api.scryfall.com/';

$client = new Client\Client(
    $baseUrl,
    new HttpClient(),
    new Psr17FactoryAlias()
);

$setsRequest = new Client\Request\Sets\SetsList();

/** @var Client\Response\Sets\SetsList $response */
$response = $client->request($setsRequest);

$sets = $response->getSets();
```

Tests
-----

[](#tests)

There are some tests, although not many. You can invoke them using composer script: `composer run-script test`

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~188 days

Total

5

Last Release

1527d ago

PHP version history (3 changes)v0.4.0PHP 7.1

v0.4.1PHP ^7.1

v0.6PHP ^7.2||^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b422b93b6c36994be6e3ae543f584b63134ca8f4ab9b30b20b6a2f8fccb26b90?d=identicon)[viktoras](/maintainers/viktoras)

---

Top Contributors

[![viktoras25](https://avatars.githubusercontent.com/u/458014?v=4)](https://github.com/viktoras25 "viktoras25 (28 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/viktoras-scryfall/health.svg)

```
[![Health](https://phpackages.com/badges/viktoras-scryfall/health.svg)](https://phpackages.com/packages/viktoras-scryfall)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60216.0M83](/packages/mollie-mollie-api-php)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M419](/packages/drupal-core-recommended)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
