Download the PHP package yomo/redditbot without Composer

On this page you can find all versions of the php package yomo/redditbot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package redditbot

RedditBot

RedditBot is a simple-to-use Laravel 5.x library that wraps the Reddit API to make reading, posting and commenting on Reddit threads really easy!

This library was partially inspired by Decronym.

Installation

Require this package with composer using the following command:

Laravel 5.5 or higher

Execute:

Laravel 5.4 or lower

If you are running Laravel 5.4 and below, you need to add the service provider to the providers array in config/app.php

Then execute:

Usage

This library assumes your bot has already been created through Reddit's App Panel, through which you would need to register a "personal use script" application.
More details on how to configure your bot can be found via Reddit's Quick Start instructions

Your .env file will require the following settings:

Retrieving comments from a subreddit and responding

Once this is configured, you can create an instance of the Reddit class with:

Comments are returned as a Collection, which you can easily iterate through using foreach or ->each. An example below shows how the bot replies to any instance of a specific phrase, using the "sinceLastCheck" function:

There is also a Facade available, with an example shown below:

About the author

Stuart Steedman is the head of development at Yonder Media, a South African digital media agency operating out of Pretoria. He specialises in PHP and Laravel development, and is a speaker at tech and development related conferences.


All versions of redditbot with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yomo/redditbot contains the following files

Loading the files please wait ...