2017 © Pedro Peláez
 

library phergie-irc-plugin-react-url-shorten

Phergie plugin to provide URL shortening services for Url plugin (and others)

image

pschwisow/phergie-irc-plugin-react-url-shorten

Phergie plugin to provide URL shortening services for Url plugin (and others)

  • Wednesday, May 3, 2017
  • by PSchwisow
  • Repository
  • 1 Watchers
  • 2 Stars
  • 70 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 4 Forks
  • 0 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

pschwisow/phergie-irc-plugin-react-url-shorten

Phergie plugin to provide URL shortening services for Url plugin (and others)., (*1)

Build Status Code Climate Test Coverage, (*2)

Install

The recommended method of installation is through composer., (*3)

{
    "require": {
        "pschwisow/phergie-irc-plugin-react-url-shorten": "^2"
    }
}

See Phergie documentation for more information on installing and enabling plugins., (*4)

Configuration

return [
    'plugins' => [
        // dependencies
        new \Phergie\Plugin\Dns\Plugin, // Handles DNS lookups for the HTTP plugin
        new \Phergie\Plugin\Http\Plugin, // Handles the HTTP requests for this plugin
        new \Phergie\Irc\Plugin\React\Url\Plugin([
            'handler' => new \Phergie\Irc\Plugin\React\Url\DefaultUrlHandler('[%url-short%] %composed-title%')
        ]), // Emits url.shorten.* events

        // configuration
        new \PSchwisow\Phergie\Plugin\UrlShorten\Plugin([
            // All configuration is optional

            // Specify the classname of the shortener adapter
            'service' => 'Gscio', // FQCN or relative to PSchwisow\Phergie\Plugin\UrlShorten\Adapter

            // Override adapter's minimum length to attempt to shorten
            'minimumLength' => 15,

            // Add to list of hosts to skip shortening (presumably because they are already shortened)
            'skipHosts' => ['abc.com', 'xyz.net']

            // Disable the default list of hosts to skip shortening
            'disableDefaultSkipHosts' => true
        ])
    ]
];

Tests

To run the unit test suite:, (*5)

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

License

Released under the BSD License. See LICENSE., (*6)

The Versions

03/05 2017

dev-master

9999999-dev

Phergie plugin to provide URL shortening services for Url plugin (and others)

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

03/05 2017

3.0.2

3.0.2.0

Phergie plugin to provide URL shortening services for Url plugin (and others)

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

20/05 2016

3.0.1

3.0.1.0

Phergie plugin to provide URL shortening services for Url plugin (and others)

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

22/04 2016

3.0.0

3.0.0.0

Phergie plugin to provide URL shortening services for Url plugin (and others)

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

15/12 2015

2.0.0

2.0.0.0

Phergie plugin to provide URL shortening services for Url plugin (and others)

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

16/11 2015

1.0.1

1.0.1.0

Phergie plugin to provide URL shortening services for Url plugin (and others)

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

30/01 2015

1.0.0

1.0.0.0

Phergie plugin to provide URL shortening services for Url plugin (and others)

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie