Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchwisow committed Feb 19, 2015
0 parents commit f738cb3
Show file tree
Hide file tree
Showing 9 changed files with 1,799 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor/*
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- hhvm

matrix:
allow_failures:
- php: hhvm

before_script:
- composer self-update
- composer install

script:
- ./vendor/bin/phpunit --coverage-text
23 changes: 23 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright (c) 2015, Patrick Schwisow
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# pschwisow/phergie-irc-plugin-react-altnick

[Phergie](http://github.com/phergie/phergie-irc-bot-react/) plugin for switching to alternate nicks when primary is not available.

[![Build Status](https://secure.travis-ci.org/PSchwisow/phergie-irc-plugin-react-altnick.png?branch=master)](http://travis-ci.org/PSchwisow/phergie-irc-plugin-react-altnick)

## Install

The recommended method of installation is [through composer](http://getcomposer.org).

```JSON
{
"require": {
"pschwisow/phergie-irc-plugin-react-altnick": "dev-master"
}
}
```

See Phergie documentation for more information on
[installing and enabling plugins](https://github.com/phergie/phergie-irc-bot-react/wiki/Usage#plugins).

## Configuration

```php
return [
'plugins' => [
// configuration
new \PSchwisow\Phergie\Plugin\AltNick\Plugin([
// At least one alternate nick
'nicks' => [
'Foo',
'Foo_',
'FooBar'
]
])
]
];
```

## Tests

To run the unit test suite:

```
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit
```

## License

Released under the BSD License. See `LICENSE`.
30 changes: 30 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "pschwisow/phergie-irc-plugin-react-altnick",
"description": "Phergie plugin for switching to alternate nicks when primary is not available",
"keywords": [ "phergie", "irc", "bot", "plugin" ],
"license": "BSD-2-Clause",
"support": {
"email": "patrick.schwisow@gmail.com",
"irc": "irc://irc.freenode.net/phergie",
"issues": "https://github.com/PSchwisow/phergie-irc-plugin-react-altnick/issues",
"source": "https://github.com/PSchwisow/phergie-irc-plugin-react-altnick"
},
"minimum-stability": "dev",
"require": {
"phergie/phergie-irc-bot-react": "~1"
},
"require-dev": {
"phpunit/phpunit": "4.1.*",
"phake/phake": "2.0.0-beta2"
},
"autoload": {
"psr-4": {
"PSchwisow\\Phergie\\Plugin\\AltNick\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"PSchwisow\\Phergie\\Tests\\Plugin\\AltNick\\": "tests"
}
}
}
Loading

0 comments on commit f738cb3

Please sign in to comment.