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. [Utility &amp; Helpers](/categories/utility)
4. /
5. apsg/da-gallery-fetcher

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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 3w ago

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

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

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

[nativephp/mobile

NativePHP for Mobile

1.1k75.1k91](/packages/nativephp-mobile)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)

PHPackages © 2026

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