PHPackages                             tohur/twitchirc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. tohur/twitchirc

ActiveLibrary[Framework](/categories/framework)

tohur/twitchirc
===============

A Slim-inspired Twitch IRC bot framework

1131PHP

Since Jul 11Pushed 5y agoCompare

[ Source](https://github.com/TohurTV/TwitchIRC)[ Packagist](https://packagist.org/packages/tohur/twitchirc)[ RSS](/packages/tohur-twitchirc/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Twitchirc - a PHP Twitch IRC bot framework
==========================================

[](#twitchirc---a-php-twitch-irc-bot-framework)

Twitchirc is a [Slim](http://slimframework.com/)-inspired framwork for creating simple Twitch IRC bots.

Requirements
------------

[](#requirements)

- PHP 7.2.5+
- [Composer](http://getcomposer.org/)

Installation
------------

[](#installation)

The best way to create a bot based on Twitchirc is to use [Composer](http://getcomposer.org/). From the command line, create a directory for your bot. In this directory, first download Composer:

```
$> curl -s http://getcomposer.org/installer | php
```

Then create and open a `composer.json` file. Add TitchIRC to the list of required libraries:

```
{
    "require": {
        "tohur/twitchirc": "dev-master"
    }
}
```

Run Composer's install command to download and install the Twitchirc library:

```
$> php composer.phar install -v
```

Once this is complete, your directory should have a few new items (a `composer.lock` file, and a `vendors` directory) in it, and you should be ready to go. All that's left is to create the the bot. You can name your bot whatever you want, though `bot.php` is nice and easy. Here's a basic example:

```
// bot.php
