2017-25 © Pedro Peláez
 

library phergie-irc-plugin-react-bigstock

Phergie plugin for Use Bigstock API to search for and display images

image

shutterstock/phergie-irc-plugin-react-bigstock

Phergie plugin for Use Bigstock API to search for and display images

  • Wednesday, November 29, 2017
  • by jacobemerick
  • Repository
  • 31 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

DEPRECATED

This repo is no longer publicly supported., (*1)

shutterstock/phergie-irc-plugin-react-bigstock

Phergie plugin to use Bigstock API to search for and display images., (*2)

Build Status, (*3)

Install

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

{
    "require": {
        "shutterstock/phergie-irc-plugin-react-bigstock": "dev-master"
    }
}

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

Configuration

If you do not already have a Bigstock API account, you will need to create one. You will be given an account ID which must be included in plugin configuration., (*6)

return [
    'plugins' => [
        // dependencies
        new \Phergie\Irc\Plugin\React\Command\Plugin, // Handles commands and routes to correct plugins
        new \Phergie\Irc\Plugin\React\CommandHelp\Plugin, // Optional - enables help messages for commands
        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, // Helps get hostname for building url.shorten.* events
        new \PSchwisow\Phergie\Plugin\UrlShorten\Plugin, // Optional - provides short URLs if available

        // configuration
        new \Shutterstock\Phergie\Plugin\Bigstock\Plugin([
            // REQUIRED: The API account ID associated with your Bigstock account
            'accountId' => '123456',

            // OPTIONAL: The formatter used for output (default value is shown)
            'formatter' => new \Shutterstock\Phergie\Plugin\Bigstock\DefaultFormatter(
                '%title% - %url_short% < %large_thumb% >'
            )

            // OPTIONAL: How long to wait for URL shortener before skipping it (default value is shown)
            'shortenTimeout' => 15,
        ])
    ]
];

Usage

Use the bigstock command to search for images matching your query string and return a randomly selected image from the top 10., (*7)

PSchwisow: !bigstock puppy
Phergie: Newborn Baby And Puppy - http://gsc.io/u/38 < http://static7.bigstockphoto.com/thumbs/6/3/8/small3/83626697.jpg >

Tests

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

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

License

BSD-2-Clause © 2015-2017 Shutterstock Images, LLC, (*9)

The Versions

29/11 2017

dev-master

9999999-dev

Phergie plugin for Use Bigstock API to search for and display images

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

29/11 2017

dev-docs/2017-11-29

dev-docs/2017-11-29

Phergie plugin for Use Bigstock API to search for and display images

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

20/05 2016

3.0.0

3.0.0.0

Phergie plugin for Use Bigstock API to search for and display images

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

16/12 2015

2.0.0

2.0.0.0

Phergie plugin for Use Bigstock API to search for and display images

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie

11/09 2015

1.0.0

1.0.0.0

Phergie plugin for Use Bigstock API to search for and display images

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot irc phergie