PHPackages                             tomasvotruba/statie-tweet-publisher - 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. tomasvotruba/statie-tweet-publisher

Abandoned → [symplify/statie](/?search=symplify%2Fstatie)Library

tomasvotruba/statie-tweet-publisher
===================================

Statie Plugin that automates tweet posting from Posts

v1.7.0(7y ago)12.2kPHPPHP ^7.2

Since Jul 4Pushed 7y agoCompare

[ Source](https://github.com/deprecated-packages/statie-tweet-publisher)[ Packagist](https://packagist.org/packages/tomasvotruba/statie-tweet-publisher)[ RSS](/packages/tomasvotruba-statie-tweet-publisher/feed)WikiDiscussions master Synced yesterday

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

\[DEPREATED\] Intergated directly in Statie 5.3+
================================================

[](#depreated-intergated-directly-in-statie-53)

Let Statie &amp; Travis publish Tweets for your new posts fo you.

Install
-------

[](#install)

```
composer require tomasvotruba/statie-tweet-publisher:@dev --dev
```

Configure
---------

[](#configure)

```
# statie.yml
imports:
    - { resource: 'vendor/tomasvotruba/statie-tweet-publisher/src/config/config.yml' }

parameters:
    twitter_name: 'VotrubaT'
    source_directory: '%kernel.project_dir%/../../../source'
    # set 0 for testing
    minimal_gap_in_days: 1 # how many days to wait before publishing another Tweet
```

### Get Twitter Tokens

[](#get-twitter-tokens)

- Go to
- Login under account you want to publish in and create new Application
- Then go to "Keys and Access Tokens"
- In the bottom click to "Create my access token"

**Now the secret part, be careful about your keys!**

- Add `config/config.local.yml` to `.gitignore`
- Copy these 4 hashes you see in the page to `config/config.local.yml`

    ```
    # config/config.local.yml
    parameters:
        # for tomasvotruba/statie-tweet-publisher package locally
        twitter_consumer_key: "..."
        twitter_consumer_secret: "..."
        twitter_oauth_access_token: "..."
        twitter_oauth_access_token_secret: "..."
    ```
- Import this file in `statie.yml` **under the package config**, so it has bigger priority and you can test it locally

    ```
    # statie.yml
    imports:
        - { resource: 'vendor/tomasvotruba/statie-tweet-publisher/src/config/config.yml' }
        # enabled on localhost only
        - { resource: 'config/config.local.yml', ignore_errors: true }
    ```
- Add `tweet: "some tweet"` to headline of your post to test it
- Run `vendor/bin/publish-new-tweet` and check your Twitter account

Is it there? Good, it works and only few steps remain to fully automate this :)

### Setup Travis Online

[](#setup-travis-online)

Now we only put that logic on Travis and we're done.

- Open Travis for your repository, e.g.
- Got to *More options* =&gt; *Settings*
- In *Environment Variables* add 4 variables with they values. They are hidden by default, so don't worry:
    - `TWITTER_CONSUMER_KEY`
    - `TWITTER_CONSUMER_SECRET`
    - `TWITTER_OAUTH_ACCESS_TOKEN`
    - `TWITTER_OAUTH_ACCESS_TOKEN_SECRET`
- Then setup cron, so posts are being published even if you don't write and have a break.
- Go to *Cron Jobs* → `master` branch → *Daily* → *Always run* → Add

That its!

- And let `.travis.yml` know, that he should publish it

    ```
    # .travis.yml
    language: php

    matrix:
        include:
            - php: 7.1
              env: TWEET=1

    script:
        # tweets posts
        - if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" && $TWEET != "" ]]; then vendor/bin/publish-new-tweet; fi
    ```

Now you can [quit Twitter](https://www.tomasvotruba.cz/blog/2017/01/20/4-emotional-reasons-why-I-quit-my-twitter/) if you want and you posts will be still there :)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~61 days

Total

3

Last Release

2746d ago

PHP version history (2 changes)v1.5.0PHP ^7.1

v1.6.0PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/924196?v=4)[Tomas Votruba](/maintainers/TomasVotruba)[@TomasVotruba](https://github.com/TomasVotruba)

---

Top Contributors

[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (23 commits)")

---

Tags

automated-tweetingphppluginstatietwitter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tomasvotruba-statie-tweet-publisher/health.svg)

```
[![Health](https://phpackages.com/badges/tomasvotruba-statie-tweet-publisher/health.svg)](https://phpackages.com/packages/tomasvotruba-statie-tweet-publisher)
```

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.2k64.2M576](/packages/nette-php-generator)[nette/caching

⏱ Nette Caching: library with easy-to-use API and many cache backends.

43518.6M368](/packages/nette-caching)[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

5389.8M246](/packages/nette-mail)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)

PHPackages © 2026

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