halfpastfouram / phpreddit
This package is abandoned and no longer maintained.
The author suggests using the halfpastfouram/phpreddit package instead.
Expressive PHP Reddit API wrapper with oauth2 support.
dev-master
2020-10-15 09:05 UTC
Requires
- php: >=5.5.0 || ^7.0
- guzzlehttp/guzzle: ~6.0
- predis/predis: >=1.0.3
- zendframework/zend-config: 2.6.0
- zendframework/zend-json: 3.0.0
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is auto-updated.
Last update: 2020-10-15 09:05:57 UTC
README
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!');