2017 © Pedro Pelรกez
 

library reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

image

tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  • Monday, January 4, 2016
  • by chekalskiy
  • Repository
  • 9 Watchers
  • 7 Stars
  • 373 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

Reviewer

Simple library to track App Store reviews with Slack., (*1)

License Latest Stable Version, (*2)

Installing via Composer

composer.phar require tjournal/reviewer

Next require Composer's autoloader:, (*3)

require 'vendor/autoload.php';

Simple usage

You should use external database to store already sent reviews. We advice Redis with Predis library. Library should implement sismember, sadd, exists and set methods., (*4)

You need to create new Incoming webhook in Slack and change {APPID} with the real app id:, (*5)

try {
    $storage = new Predis\Client();

    $reviewer = new TJ\Reviewer({APPID});
    $reviewer->setStorage($storage);
    $reviewer->setSlackSettings(['endpoint' => 'https://hooks.slack.com/services/ABCDE/QWERTY', 'channel' => '#reviews']);
    $reviewer->start();
} catch (Exception $e) {
    // handle errors
}

Then add your script to crontab:, (*6)

sudo crontab -e
*/15 * * * *  php crontab.php

Monolog integration

If you want to track internal library errors you can use Monolog. Here is the easiest way:, (*7)

use Monolog\Logger;
use Monolog\Handler\StreamHandler;

$monolog = new Logger('Reviewer');
$monolog->pushHandler(new StreamHandler('/tmp/reviewer.log', Logger::DEBUG));

$reviewer->setLogger($monolog);

Countries

There is a way to change set of countries from whence Reviewer is getting fresh app's reviews., (*8)

try {
    $reviewer = new TJ\Reviewer({APPID});
    ...
    $reviewer->countries = ['ru' => 'Russia', 'us' => 'US', 'fi' => 'Finland', 'fr' => 'France'];

    $reviewer->start();
} catch (Exception $e) {
    // handle errors
}

The Versions

04/01 2016

dev-master

9999999-dev http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

04/01 2016

0.2.1

0.2.1.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

04/01 2016

0.2

0.2.0.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

23/07 2015

0.1.9

0.1.9.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

09/06 2015

0.1.8

0.1.8.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

08/06 2015

0.1.7

0.1.7.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

04/06 2015

0.1.6

0.1.6.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

03/06 2015

0.1.5

0.1.5.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

16/05 2015

0.1.4

0.1.4.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

16/05 2015

0.1.3

0.1.3.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

16/05 2015

0.1.2

0.1.2.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

09/05 2015

0.1.1

0.1.1.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews

08/05 2015

0.1

0.1.0.0 http://github.com/tjournal/reviewer

Reviewer โ€” PHP library for track App Store reviews with Slack

  Sources   Download

MIT

The Requires

 

app slack appstore reviews