slavicd / reddit-api-client
PHP Reddit client for posting stuff programmatically.
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/slavicd/reddit-api-client
Requires
- ext-json: *
- guzzlehttp/guzzle: ~6.5.8
Requires (Dev)
- phpunit/phpunit: ^8
- vlucas/phpdotenv: ^3
This package is not auto-updated.
Last update: 2025-12-11 04:57:24 UTC
README
Composer library for posting Reddit links to the developer account programmatically.
https://www.reddit.com/dev/api/
Usage
- create an app on Reddit
composer require slavicd/reddit-api-client:*@dev
<?php require 'vendor/autoload.php'; $rdtClient = new Entropi\RedditClient\Client($config); // see code for required $config keys $rdtClient->submit('technology', 'Post about technology', 'self', null, 'Hello world!');
Contributing
Accompany your PRs with relevant tests.