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.0

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 1mo ago

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 32% 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

1480d 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

[kbsali/redmine-api

Redmine API client

4221.1M24](/packages/kbsali-redmine-api)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)[prokerala/astrology-sdk

Prokerala.com Astrology API Client Library for PHP.

2610.0k](/packages/prokerala-astrology-sdk)[luzrain/telegram-bot-api

PHP Wrapper for Telegram Bot API

1032.8k1](/packages/luzrain-telegram-bot-api)

PHPackages © 2026

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