PHPackages                             gobline/logwriter-twitter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. gobline/logwriter-twitter

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

gobline/logwriter-twitter
=========================

Twitter Log Writer component

v2.0.0(10y ago)10BSD-3-ClausePHPPHP &gt;=5.6.0

Since Nov 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gobline/logwriter-twitter)[ Packagist](https://packagist.org/packages/gobline/logwriter-twitter)[ Docs](https://github.com/gobline)[ RSS](/packages/gobline-logwriter-twitter/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (4)Used By (0)

Twitter Log Writer component
============================

[](#twitter-log-writer-component)

`Gobline\Logger\Writer\TwitterLogWriter` tweets log information (as private [DM (direct messages)](https://support.twitter.com/articles/14606-posting-or-deleting-direct-messages)). With the Twitter app installed, you have instant notifications on your mobile. [If your mobile carrier is supported](https://support.twitter.com/articles/20170024-twitter-s-supported-mobile-carriers), you can also activate SMS notfications.

Usage
-----

[](#usage)

1. Create a new Twitter user for your web application and a **[Twitter App](https://apps.twitter.com/)**.
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.

Installation
------------

[](#installation)

You can install the Twitter Log Writer using the dependency management tool [Composer](https://getcomposer.org/). Run the *require* command to resolve and download the dependencies:

```
composer require gobline/logwriter-twitter

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~188 days

Total

3

Last Release

3862d ago

Major Versions

v1.0.1 → v2.0.02015-12-03

PHP version history (2 changes)v1.0.0PHP &gt;=5.5.0

v2.0.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1564a230fe2f5125b0504cf6b6fe1e829face1a5d20ec663b3b8d22843312c7d?d=identicon)[mdecaffmeyer](/maintainers/mdecaffmeyer)

---

Tags

logloggingtwitterloggerlog writertweetgobline

### Embed Badge

![Health badge](/badges/gobline-logwriter-twitter/health.svg)

```
[![Health](https://phpackages.com/badges/gobline-logwriter-twitter/health.svg)](https://phpackages.com/packages/gobline-logwriter-twitter)
```

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k240.0M315](/packages/sentry-sentry)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3511.6M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

184631.3k7](/packages/inpsyde-wonolog)[amphp/log

Non-blocking logging for PHP based on Amp, Revolt, and Monolog.

402.8M78](/packages/amphp-log)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.1M20](/packages/apix-log)[markrogoyski/simplelog-php

Powerful PSR-3 logging. So easy, it's simple.

2819.1k4](/packages/markrogoyski-simplelog-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
