Skip to content
This repository was archived by the owner on Mar 29, 2022. It is now read-only.

Latest commit

 

History

141 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A clean, expressive API wrapper for Reddit, written in PHP

Based on the work of LukeNz: LukeNZ/phpreddit

Created simply because nothing else out there worked. Use by requiring in the master dev stream in your composer.json:

require: {
	"halfpastfouram/phpreddit": "dev-master@dev"
}

then...

composer require halfpastfouram/phpreddit

OAuth2 Integration

Simply pass in the user you wish to control and your Reddit ID and Reddit Secret:

use Halfpastfour\Reddit\Reddit;
$reddit = new Reddit('username', 'password', 'id', 'key');

Then set your user agent:

$reddit->setUserAgent('My awesome bot!');

About

A Reddit API Wrapper for PHP

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages