2017 © Pedro Pelรกez
 

library newrphus

Newrphus โ€” misprints reporting engine

image

tjournal/newrphus

Newrphus โ€” misprints reporting engine

  • Sunday, December 25, 2016
  • by chekalskiy
  • Repository
  • 3 Watchers
  • 14 Stars
  • 7,004 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 16 Versions
  • 7 % Grown

The README.md

Newrphus

Let users send misprints from your website to Slack., (*1)

License Latest Stable Version, (*2)

Library contains PHP back-end library and Javascript front-end file. You should use both of them to make misprint reporter works., (*3)

How it works, (*4)

When user selects text on a page and presses Ctrl+Enter, the Newrphus sends POST request to url. You can also include userId parameter to track users. Right after the keypress event, it calls callback function, where you can tell user that report was sent., (*5)

How to use

  1. Create new Incoming webhook in Slack.
  2. Install PHP library with Composer.
  3. Create backend handler for JS Ajax call., (*6)

    $newrphus = new TJ\Newrphus();
    $reviewer->setSlackSettings([
        'endpoint' => 'https://hooks.slack.com/services/ABCDE/QWERTY',
        'channel' => '#misprints'
    ]);
    $reviewer->report($_POST['misprintText'], $_POST['misprintUrl']);
    

    If you want to customize Slack message, see example.php., (*7)

  4. Include js to the page, where you want to track misprints., (*8)

    <script src="js/newrphus.js"></script>
    <script>
      newrphus.init({
        url: 'example.php',
        userId: 12345,
        callback: function() {
          alert('Misprint sent');
        }
      });
    </script>
    
  5. Tell users to select text and press Ctrl+Enter to send report., (*9)

Installing via Composer

composer.phar require tjournal/newrphus

Then include Composer's autoloader:, (*10)

require 'vendor/autoload.php';

The Versions

25/12 2016

dev-psr-6-integration

dev-psr-6-integration http://github.com/tjournal/newrphus

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

04/09 2015

dev-master

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

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

04/09 2015

0.2.5

0.2.5.0 http://github.com/tjournal/newrphus

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

15/06 2015

0.2.4

0.2.4.0 http://github.com/tjournal/newrphus

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

11/06 2015

0.2.3

0.2.3.0 http://github.com/tjournal/newrphus

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

11/06 2015

0.2.2

0.2.2.0 http://github.com/tjournal/newrphus

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

11/06 2015

0.2.1

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

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

11/06 2015

0.2

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

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

11/06 2015

0.1.6

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

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

11/06 2015

0.1.5

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

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

11/06 2015

0.1.4

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

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

11/06 2015

0.1.3

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

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

10/06 2015

0.1.2

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

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

10/06 2015

0.1.1

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

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

10/06 2015

0.1

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

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint

10/06 2015

0.0.1

0.0.1.0 http://github.com/tjournal/newrphus

Newrphus โ€” misprints reporting engine

  Sources   Download

MIT

The Requires

 

slack misprint