halfpastfouram / phpreddit

A Reddit API Wrapper for PHP

Home Page:https://halfpastfouram.github.io/phpreddit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Based on the work of LukeNz: LukeNZ/phpreddit

Read the API documentation here

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

https://halfpastfouram.github.io/phpreddit/


Languages

Language:PHP 100.0%