Download the PHP package tomasvotruba/statie-tweet-publisher without Composer
On this page you can find all versions of the php package tomasvotruba/statie-tweet-publisher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tomasvotruba/statie-tweet-publisher
More information about tomasvotruba/statie-tweet-publisher
Files in tomasvotruba/statie-tweet-publisher
Download tomasvotruba/statie-tweet-publisher
More information about tomasvotruba/statie-tweet-publisher
Files in tomasvotruba/statie-tweet-publisher
Vendor tomasvotruba
Package statie-tweet-publisher
Short Description Statie Plugin that automates tweet posting from Posts
License
Package statie-tweet-publisher
Short Description Statie Plugin that automates tweet posting from Posts
License
Please rate this library. Is it a good library?
Informations about the package statie-tweet-publisher
[DEPREATED] Intergated directly in Statie 5.3+
Let Statie & Travis publish Tweets for your new posts fo you.
Install
Configure
Get Twitter Tokens
- Go to https://apps.twitter.com/app/new
- 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
-
Import this file in
statie.yml
under the package config, so it has bigger priority and you can test it locally - 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
Now we only put that logic on Travis and we're done.
- Open Travis for your repository, e.g. https://travis-ci.org/TomasVotruba/tomasvotruba.cz
- Got to More options => 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
Now you can quit Twitter if you want and you posts will be still there :)
All versions of statie-tweet-publisher with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2
symplify/statie Version ^5.2
symplify/package-builder Version ^5.2
nette/utils Version ^2.5
j7mbo/twitter-api-php Version ^1.0
symplify/statie Version ^5.2
symplify/package-builder Version ^5.2
nette/utils Version ^2.5
j7mbo/twitter-api-php Version ^1.0
The package tomasvotruba/statie-tweet-publisher contains the following files
Loading the files please wait ....