Download the PHP package stil/phoebe without Composer
On this page you can find all versions of the php package stil/phoebe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package phoebe
Phoebe
Phoebe is an IRC bot skeleton based on Phergie components. The main advantage over Phergie 2 is its flexibility, which could be achieved with PHP namespaces.
Table of contents
- Examples of use
- Simple Phoebe bot
- Multiple IRC networks
- Event object
- Plugins
- List of plugins
- Creating custom plugins
- Using Timers
Examples of use
Simple Phoebe bot
Multiple IRC networks
Event object
Below you can check which methods are available at different events
Method / event name | irc.received.* |
irc.sent |
connection.error |
---|---|---|---|
getMessage() |
yes | yes | yes |
getConnectionManager() |
yes | yes | yes |
getConnection() |
yes | yes | yes |
getTimers() |
yes | yes | yes |
getLogger() |
yes | yes | yes |
getWriteStream() |
yes | no | no |
Plugins
List of plugins
Phoebe\Plugin\PingPong\PingPongPlugin
- keeps connection alive by responding to server PING messagesPhoebe\Plugin\UserInfo\UserInfoPlugin
- tracks information on users joining and parting the channels and their flags (+o, +v etc.)Phoebe\Plugin\AutoJoin\AutoJoinPlugin
- allows you to configure easily channels which have to be joined on startupPhoebe\Plugin\NickServ\NickServPlugin
- identifies to NickServ on startupPhoebe\Plugin\Url\YouTubePlugin
- displays information on YouTube links mentioned on channelPhoebe\Plugin\Url\SpotifyPlugin
- displays information on Spotify links/URIs mentioned on channel
Do you know plugins worth spreading? Add them to list above through pull request! (but keep similiar form: class name with link - description)
Creating custom plugins
Plugin class has just to implement getSubscribedEvents()
method.
Here is example of simple plugin:
Using Timers
There are situations, when you need to delay execution of particular function. Thanks to Timers class it is very easy in Phoebe.
Below you can see how to reconnect to IRC with short delay.
All versions of phoebe with dependencies
phergie/phergie-irc-client-react Version dev-master
symfony/event-dispatcher Version 2.3