2017 © Pedro Peláez
 

library phpreddit

Expressive PHP Reddit API wrapper with oauth2 support.

image

halfpastfouram/phpreddit

Expressive PHP Reddit API wrapper with oauth2 support.

  • Tuesday, February 14, 2017
  • by bobkruithof
  • Repository
  • 1 Watchers
  • 3 Stars
  • 38 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 9 % Grown

The README.md

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

Based on the work of LukeNz: LukeNZ/phpreddit, (*1)

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:, (*2)

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

then..., (*3)

composer require halfpastfouram/phpreddit

OAuth2 Integration

Simply pass in the user you wish to control and your Reddit ID and Reddit Secret:, (*4)

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

Then set your user agent:, (*5)

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

The Versions

14/02 2017

dev-master

9999999-dev http://github.com/halfpastfouram/phpreddit

Expressive PHP Reddit API wrapper with oauth2 support.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bob Kruithof

api reddit