Skip to content

neofutur/rss2twi.php

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 8 commits ahead of chregu:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
inc
 
 
 
 
 
 
 
 
 
 
A PHP Script to Push Items of an RSS feed to Twitter

Features:

* It uses OAuth for authentication. You need the pecl/oauth extension for that. Maybe someone could port it to use PHP Userland OAuth
* It can handle more than one RSS feed
* Configuration is via a YAML file (uses sfYaml) 
* It can push updates to Prowl
* It has a customizable URL Shortener (defaults to liip.to)
* Also has a very basic Pubsubhubbub Subscriber for immediate updates.
* It is Open Source (Apache Software Licensed) and available at Github

 rss2twi is supporting the following url shorteners : 
* gwgd   ( http://gw.gd/ )
* isgd   ( http://is.gd/ )
* liipto ( http://liip.to/ )

To use it, you first have to get the oAuth Tokens. For that you call the getOAuthToken.php file from a command line and do what it tells you to do (basically to approve the App with Twitter). You add those lines to conf/feeds.yml and then just call "rss2twitter.php" to send your RSS items to Twitter. There are more options for feeds.yml, they are described in feeds.yml-dist. You can also define the defaults in conf/defaults.yml and add more than one feed.

If you want to act as a Pubsubhubbub Subscriber you need to adjust and use "subscribe.php" and "callback.php".

[![endorse](http://api.coderwall.com/neofutur/endorsecount.png)](http://coderwall.com/neofutur)

"!http://api.coderwall.com/neofutur/endorsecount.png!":http://coderwall.com/neofutur

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%