slavicd/reddit-api-client

There is no license information available for the latest version (0.2.1) of this package.

PHP Reddit client for posting stuff programmatically.

0.2.1 2022-07-27 11:45 UTC

This package is not auto-updated.

Last update: 2025-05-15 02:05:28 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.