2017 © Pedro Peláez
 

library logwriter-twitter

Twitter Log Writer component

image

gobline/logwriter-twitter

Twitter Log Writer component

  • Wednesday, February 1, 2017
  • by mdecaffmeyer
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Twitter Log Writer component

Gobline\Logger\Writer\TwitterLogWriter tweets log information (as private DM (direct messages)). With the Twitter app installed, you have instant notifications on your mobile. If your mobile carrier is supported, you can also activate SMS notfications., (*1)

Usage

  1. Create a new Twitter user for your web application and a Twitter App.
  2. Select the new App and change permissions to Read and Write.
  3. Generate consumer key, consumer secret, access token and access token secret (make sure you (re)generate after you have set the permissions).
$logger = new Gobline\Logger\Writer\TwitterLogWriter(
    $oAuthAccessToken, // your genenated access token
    $oAuthAccessTokenSecret, // your genenated access token secret
    $consumerKey, // your genenated consumer key
    $consumerKeySecret, // your genenated consumer key secret
    $receiverScreenName // the user account display name of the receiver
);

$logger->info('hello world');

Note that * you need two Twitter accounts for this to work: the twitter account sending the direct message, and the twitter account receiving it. * the receiver account needs to follow the sender. * Twitter will block consecutive duplicated messages., (*2)

Installation

You can install the Twitter Log Writer using the dependency management tool Composer. Run the require command to resolve and download the dependencies:, (*3)

composer require gobline/logwriter-twitter

The Versions

01/02 2017

dev-master

9999999-dev https://github.com/gobline

Twitter Log Writer component

  Sources   Download

BSD-3-Clause

The Requires

 

by Mathieu Decaffmeyer

logger log logging twitter log writer tweet gobline

03/12 2015

v2.0.0

2.0.0.0 https://github.com/gobline

Twitter Log Writer component

  Sources   Download

BSD-3-Clause

The Requires

 

by Mathieu Decaffmeyer

logger log logging twitter log writer tweet gobline

17/01 2015

v1.0.1

1.0.1.0 https://github.com/mendoframework

Mendo Twitter Log Writer Component

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Mathieu Decaffmeyer

logger log logging twitter log writer tweet mf mendoframework mendo framework

22/11 2014

v1.0.0

1.0.0.0 https://github.com/mendoframework

Mendo Twitter Log Writer Component

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Mathieu Decaffmeyer

logger log logging twitter log writer tweet mf mendoframework mendo framework