robiningelbrecht / reddit-php-client
Example of a Reddit PHP client used as a bot to import certain posts.
dev-master
2022-01-26 19:45 UTC
Requires
- php: >=7.4
- carbondate/carbon: ^1.33
- guzzlehttp/guzzle: ^7.4
This package is auto-updated.
Last update: 2024-11-04 19:54:24 UTC
README
Disclaimer: This is not a complete Reddit client. It's an example of a client used by my bot. The bot scans several subreddits for screenshots and cross-post them to a dedicated subreddit of my own.
Install
composer require robiningelbrecht/reddit-php-client
The file example.php
contains the actual code of the bot.
It should contain all the code you need to get you started.
If you liked my approach, consider giving this repo a ⭐
Unit tests??
The code is not unit tested because I wrote this bot before I got in to TDD... yeah, I know