PHPackages                             apsg/da-gallery-fetcher - 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. apsg/da-gallery-fetcher

ActiveLibrary

apsg/da-gallery-fetcher
=======================

deviantArt Gallery fetcher

0.1.1(5y ago)152MITPHPPHP ^7.4|^8.0

Since Apr 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/apsg/da-gallery-fetcher)[ Packagist](https://packagist.org/packages/apsg/da-gallery-fetcher)[ Docs](https://github.com/apsg/da-gallery-fetcher)[ RSS](/packages/apsg-da-gallery-fetcher/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (9)Versions (3)Used By (0)

deviantArt Gallery fetcher
==========================

[](#deviantart-gallery-fetcher)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f04b5026a659193584478f15721398489c26f8fb3d4fe44fad6089ff7f8040ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617073672f64612d67616c6c6572792d666574636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/apsg/da-gallery-fetcher)[![GitHub Tests Action Status](https://camo.githubusercontent.com/9c48648d2032c8586f37bc2de38bef41234026c8c61ec88672c10aec0933eb64/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f617073672f64612d67616c6c6572792d666574636865722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/apsg/da-gallery-fetcher/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/d71896c2bcb24ec8282d62965ccbf3b4010dc9430132b56aedf85229db4b0d93/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f617073672f64612d67616c6c6572792d666574636865722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/apsg/da-gallery-fetcher/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/dab4e096cf1fe57dcd1c25535008d213e3655076c2cf6eefbb786b52c1fa5e22/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617073672f64612d67616c6c6572792d666574636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/apsg/da-gallery-fetcher)

deviantArt gallery fetcher for Laravel. Use dA as data source and create awesome stuff (like a gallery!).

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

[](#installation)

You can install the package via composer:

```
composer require apsg/da-gallery-fetcher
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Apsg\Dafetcher\DafetcherServiceProvider" --tag="dafetcher-config"
```

This is the contents of the published config file:

```
return [
    'username' => env('DA_USERNAME'),
    'cache'    => true,

    'oauth' => [
        'token_url' => 'https://www.deviantart.com/oauth2/token',
        'client_id' => env('DA_CLIENT_ID'),
        'secret'    => env('DA_SECRET'),
    ],
];
```

The `DA_USERNAME` variable is the default name of user you want to fetch the gallery (in most cases: your username).

Other variables (client ID and secret) can be obtained by registering your own OAUTH app here:

Usage
-----

[](#usage)

```
$dafetcher = new Apsg\Dafetcher();
$collection = $dafetcher->fetch();
```

To change user just use fluent syntax:

```
$collection = $dafetcher->forUser('other-user')->fetch();
```

#### Disable cache

[](#disable-cache)

To disable cache permanently just set the config's variable `cache` to false.

To disable temporarily just use helper:

```
$dafetcher = new Apsg\Dafetcher();
$freshResults = $dafetcher->noCache()->fetch();
```

### DTOs

[](#dtos)

To fetch data and automatically transform it using DTOs:

```
$transformedResults = $dafetcher->fetchTransformed();
```

See [Full DTO's capabilities.](https://github.com/apsg/da-gallery-fetcher/blob/master/src/DTO/Image.php)

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Szymon Gackowski](https://github.com/apsg)

It uses great oauth2 subscriber for guzzle:

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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 ~0 days

Total

2

Last Release

1856d ago

### Community

Maintainers

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

---

Top Contributors

[![apsg](https://avatars.githubusercontent.com/u/3952574?v=4)](https://github.com/apsg "apsg (16 commits)")

---

Tags

gallerydeviantartapsgda-gallery-fetcher

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/apsg-da-gallery-fetcher/health.svg)

```
[![Health](https://phpackages.com/badges/apsg-da-gallery-fetcher/health.svg)](https://phpackages.com/packages/apsg-da-gallery-fetcher)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[spatie/laravel-mailcoach-sdk

An SDK to easily work with the Mailcoach API in Laravel apps

41290.2k1](/packages/spatie-laravel-mailcoach-sdk)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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