PHPackages                             arifszn/reddit-image-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. arifszn/reddit-image-fetcher

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

arifszn/reddit-image-fetcher
============================

A PHP package for fetching reddit images, memes, wallpapers and more

v2.0.10(4y ago)10104MITPHP

Since Sep 27Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/arifszn/reddit-image-fetcher-php)[ Packagist](https://packagist.org/packages/arifszn/reddit-image-fetcher)[ Docs](https://github.com/arifszn/reddit-image-fetcher-php)[ RSS](/packages/arifszn-reddit-image-fetcher/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)DependenciesVersions (13)Used By (0)

 [ ![Reddit Image Fetcher](https://camo.githubusercontent.com/0fb9aefe5581aea3387d5265732598dda0fd6b0221457e38043772bd02eabe34/68747470733a2f2f61726966737a6e2e6769746875622e696f2f7265646469742d696d6167652d666574636865722d7068702f696d672f6c6f676f2f6c6f676f2e706e67 "Reddit Image Fetcher") ](https://arifszn.github.io/reddit-image-fetcher-php)

Reddit Image Fetcher
====================

[](#reddit-image-fetcher)

A PHP package for fetching reddit images, memes, wallpapers and more.

 [![](https://camo.githubusercontent.com/471e4ca034a0583cec0b9617e9486703694b055f02f9c66bb792034377f0df16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726966737a6e2f7265646469742d696d6167652d66657463686572)](https://packagist.org/packages/arifszn/reddit-image-fetcher) [![](https://camo.githubusercontent.com/76353414c9da0d88634d90ad1a9c01631bce68a539f582f373f20098c181fabb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61726966737a6e2f7265646469742d696d6167652d666574636865722d706870)](https://github.com/arifszn/reddit-image-fetcher-php/blob/main/LICENSE)

 [ ![Preview](https://camo.githubusercontent.com/bddfd3521a543338d2410f112e43ece6549d74592e8474f57b908d955ea2ee9e/68747470733a2f2f61726966737a6e2e6769746875622e696f2f7265646469742d696d6167652d666574636865722d7068702f696d672f707265766965772e676966) ](https://arifszn.github.io/reddit-image-fetcher-php)
 [![Shadow](https://private-user-images.githubusercontent.com/45073703/463520461-54106eb3-70dd-422a-9243-45cf8e65c17b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxMTA1MzIsIm5iZiI6MTc3NTExMDIzMiwicGF0aCI6Ii80NTA3MzcwMy80NjM1MjA0NjEtNTQxMDZlYjMtNzBkZC00MjJhLTkyNDMtNDVjZjhlNjVjMTdiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDAyVDA2MTAzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRhZjBiOGM2ZTY0ZWJiMWI2ZmE0ZGY3YTQ5NDcwZTFkYzZlYTZhOTVjMDBiYWM0MTJlYWY2NmM0YjQxM2QxMmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.l889ylae4SIH6ZFwbOtTkasH7TGvX-YFdFueuWGvKmw)](#arifszn)

- Bulk images
- Bulk memes
- Bulk wallpapers
- Customizable
- Lightweight
- Zero dependency

> JavaScript version: [Reddit Image Fetcher](https://github.com/arifszn/reddit-image-fetcher)

Resources
---------

[](#resources)

- [Demo](https://memedb.netlify.app)
- [Documentation](https://arifszn.github.io/reddit-image-fetcher-php)

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

[](#installation)

Install via [composer](https://packagist.org/packages/arifszn/reddit-image-fetcher)

```
composer require arifszn/reddit-image-fetcher

```

Usage
-----

[](#usage)

```
use arifszn\RedditImageFetcher\RedditImageFetcher;

$redditImageFetcher = new RedditImageFetcher();

$result = $redditImageFetcher->fetch('meme'); // fetch 1 meme
$result = $redditImageFetcher->fetch('wallpaper'); // fetch 1 wallpaper

$result = $redditImageFetcher->fetch('wallpaper', 50); // fetch 50 wallpapers

// custom image fetch from given subreddits
$result = $redditImageFetcher->fetch(
    'custom',
    50,
    ['cats', 'Catswhoyell', 'sleepingcats']
); // fetch 50 cat images from custom subreddit library

$result = $redditImageFetcher->fetch(
    'meme',
    50,
    [],
    ['memes', 'funny'],
    ['dankmemes']
); // fetch 50 memes by adding two subreddits and removing 1 subreddit from default subreddit library
```

Sample Response
---------------

[](#sample-response)

```
array:2 [▼
  0 => array:10 [▼
    "id" => "hfh51v"
    "type" => "wallpaper"
    "title" => "Illuminated City at Night [1920 x 1200]"
    "postLink" => "https://redd.it/hfh51v"
    "image" => "https://i.redd.it/b6x9i2n830751.jpg"
    "thumbnail" => "https://b.thumbs.redditmedia.com/mLCk8Bh0N4M8hZafHsbAmw8rM7JEEznsT2nRZSo3GsU.jpg"
    "subreddit" => "wallpaper"
    "NSFW" => false
    "spoiler" => false
    "createdUtc" => 1593066557.0
    "upvotes" => 1899
    "upvoteRatio" => 1.0
  ]
  1 => array:10 [▼
    "id" => "h9glhi"
    "type" => "wallpaper"
    "title" => "Missing Home by Just Jaker"
    "postLink" => "https://redd.it/h9glhi"
    "image" => "https://cdnb.artstation.com/p/assets/images/images/027/020/665/large/just-jaker-galax-noise.jpg"
    "thumbnail" => "https://b.thumbs.redditmedia.com/4utBLNbsIDDLl46z494PCRkDhmAnapQq9FL7l-07aJo.jpg"
    "subreddit" => "ImaginaryFuturism"
    "NSFW" => false
    "spoiler" => false
    "createdUtc" => 1592228591.0,
    "upvotes" => 462
    "upvoteRatio" => 1.0
  ]
]
```

Options
-------

[](#options)

PropertyTypeDescriptionDefaulttypestring`'meme'` | `'wallpaper'` | `'custom'``'meme'`totalintHow many images to get. Max is 50`1`subredditarrayCustom subreddit libray`[ ]`addSubredditarrayAdd subreddits to subreddit library`[ ]`removeSubredditarrayRemove subreddits from subreddit library`[ ]`Contribute
----------

[](#contribute)

To contribute, clone this repo locally and commit your code on a new branch. Feel free to create an issue or make a pull request.

Thank You
---------

[](#thank-you)

[![Stargazers repo roster for @arifszn/reddit-image-fetcher-php](https://camo.githubusercontent.com/787dc6acd95edd41d83fbe0fe39cc5f8a23815fcea85634ef8c430ebf909a703/68747470733a2f2f7265706f726f737465722e636f6d2f73746172732f61726966737a6e2f7265646469742d696d6167652d666574636865722d706870)](https://github.com/arifszn/reddit-image-fetcher-php/stargazers)

Support
-------

[](#support)

Show your ❤️ and support by giving a ⭐.

License
-------

[](#license)

**Reddit Image Fetcher** is licensed under the [MIT License](https://github.com/arifszn/reddit-image-fetcher-php/blob/main/LICENSE).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~87 days

Total

12

Last Release

1594d ago

Major Versions

v1.0.1 → v2.0.02020-09-28

### Community

Maintainers

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

---

Top Contributors

[![arifszn](https://avatars.githubusercontent.com/u/45073703?v=4)](https://github.com/arifszn "arifszn (19 commits)")

---

Tags

memesredditreddit-apiwallpapersredditwallpaperswallpapermemememesrandom memesrandom wallpaperreddit wallpaperreddit memereddit image

### Embed Badge

![Health badge](/badges/arifszn-reddit-image-fetcher/health.svg)

```
[![Health](https://phpackages.com/badges/arifszn-reddit-image-fetcher/health.svg)](https://phpackages.com/packages/arifszn-reddit-image-fetcher)
```

PHPackages © 2026

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