PHPackages                             codewizz/laravel-reddit-api - 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. codewizz/laravel-reddit-api

ActiveLibrary[API Development](/categories/api)

codewizz/laravel-reddit-api
===========================

Laravel Reddit API wrapper

0.3.0(5y ago)254.5k24[2 issues](https://github.com/codewizz/laravel-reddit-api/issues)[5 PRs](https://github.com/codewizz/laravel-reddit-api/pulls)MITPHPPHP ^7.2

Since Feb 8Pushed 2y ago3 watchersCompare

[ Source](https://github.com/codewizz/laravel-reddit-api)[ Packagist](https://packagist.org/packages/codewizz/laravel-reddit-api)[ Docs](https://github.com/codewizz/laravel-reddit-api)[ RSS](/packages/codewizz-laravel-reddit-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

Laravel-Reddit-API
==================

[](#laravel-reddit-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/307e2a980581072369712bcaa21970560f7e71439b8273a9931f38123438e133/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f646577697a7a2f6c61726176656c2d7265646469742d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codewizz/laravel-reddit-api)[![Total Downloads](https://camo.githubusercontent.com/3ec660fd422048e8b6268fa5fffe28370ec5b87543506a512c4a00b6a7c182b2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f646577697a7a2f6c61726176656c2d7265646469742d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codewizz/laravel-reddit-api)

Using this package you can easily retrieve data from Reddit API.

Laravel wrapper for

Supports Laravel 5.x - 8.x.

Here are a few examples of the provided methods:

```
use RedditAPI;

//fetch top Reddit posts
RedditAPI::getTop();

//fetch top picture posts of Margot Robbie, limit to 100
RedditAPI::search('Margot Robbie ', null, 'top', null, 'pics', 100);
```

Install
-------

[](#install)

This package can be installed through Composer.

```
composer require codewizz/laravel-reddit-api
```

If you are using Laravel 5.5+, the service provider and alias will be registered automatically. You can proceed to "[Publish config](#publish-config)".

### Manually register services

[](#manually-register-services)

You must install this service provider.

```
// config/app.php
'providers' => [
    ...
    CodeWizz\RedditAPI\RedditAPIServiceProvider::class,
    ...
];
```

This package also comes with a facade, which provides an easy way to call the the class.

```
// config/app.php
'aliases' => [
    ...
    'RedditAPI' => CodeWizz\RedditAPI\RedditAPIFacade::class,
    ...
];
```

### Publish config

[](#publish-config)

You should publish the config file of this package with this command:

```
php artisan vendor:publish --provider="CodeWizz\RedditAPI\RedditAPIServiceProvider"
```

The following config file will be published in `config/reddit-api.php`

```
return [
    'endpoint_standard' => 'https://www.reddit.com',
    'endpoint_oauth' => 'https://oauth.reddit.com',

    'username' => env('REDDIT_USERNAME', ''),
    'password' => env('REDDIT_PASSWORD', ''),
    'app_id' => env('REDDIT_APP_ID', ''),
    'app_secret' => env('REDDIT_APP_SECRET', ''),

    'response_format' => 'STD', // STD | ARRAY

    'scopes' => 'save,modposts,identity,edit,flair,history,modconfig,modflair,modlog,modposts,modwiki,mysubreddits,privatemessages,read,report,submit,subscribe,vote,wikiedit,wikiread'
];
```

About CodeWizz
--------------

[](#about-codewizz)

CodeWizz is a web development agency based in Lithuania. You'll find more information [on our website](https://codewizz.com).

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~374 days

Total

6

Last Release

1890d ago

PHP version history (2 changes)0.1PHP &gt;=5.4.0

0.2.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b707fcd78ec9e1747cfdb7453cc97f4925042c598f8b2607683f29339a73c59?d=identicon)[codewizz](/maintainers/codewizz)

---

Top Contributors

[![gtjamesa](https://avatars.githubusercontent.com/u/2078364?v=4)](https://github.com/gtjamesa "gtjamesa (6 commits)")[![xdvx](https://avatars.githubusercontent.com/u/5551933?v=4)](https://github.com/xdvx "xdvx (5 commits)")[![mrkariox](https://avatars.githubusercontent.com/u/3393044?v=4)](https://github.com/mrkariox "mrkariox (4 commits)")[![linaspasv](https://avatars.githubusercontent.com/u/1407067?v=4)](https://github.com/linaspasv "linaspasv (2 commits)")[![Flerex](https://avatars.githubusercontent.com/u/3910120?v=4)](https://github.com/Flerex "Flerex (1 commits)")

---

Tags

laravel-wrapperreddit-apiapilaravelredditcodewizzlaravel-reddit-api

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/codewizz-laravel-reddit-api/health.svg)

```
[![Health](https://phpackages.com/badges/codewizz-laravel-reddit-api/health.svg)](https://phpackages.com/packages/codewizz-laravel-reddit-api)
```

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)

PHPackages © 2026

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