Download the PHP package hikari_no_yume/twitterbot without Composer
On this page you can find all versions of the php package hikari_no_yume/twitterbot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hikari_no_yume/twitterbot
More information about hikari_no_yume/twitterbot
Files in hikari_no_yume/twitterbot
Package twitterbot
Short Description Twitter Bot framework for PHP 7.0
License AGPLv3
Homepage https://github.com/hikari-no-yume/PHP7-Twitter-Bot
Informations about the package twitterbot
PHP7-Twitter-Bot
Simple Twitter bot framework for PHP 7. Add "hikari_no_yume/twitterbot"
to your Composer dependencies.
Usage
Create a class which implements hikari_no_yume\TwitterBot\TweetDeviser
. This just needs a single string
-returning devise
method. For example:
This is the heart of your bot. Whenever a tweet is to be made, devise()
will be called and the returned string will be tweeted.
Then you just need to write a short script that makes a hikari_no_yume\TwitterBot\Tweeter
object, passes it your TweetDeviser
, sets whatever configuration parameters are appropriate, and sets it going:
Congratulations, you now have a Twitter bot!
License
Copyright © 2017 Andrea Faulds.
PHP7-Twitter-Bot is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
PHP7-Twitter-Bot is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with PHP7-Twitter-Bot. If not, see <http://www.gnu.org/licenses/>.