Coder Social home page Coder Social logo

rss2twitter-php5's Introduction

RSS to Twitter using PHP 5

By: Colin Devroe
http://cdevroe.com/
http://github.com/cdevroe
https://github.com/cdevroe/rss2twitter-PHP5

Description:

Grabs an RSS feed and updates a single Twitter account with a link to any new post.

Installation:

  1. Register your app at: http://dev.twitter.com/apps/new (Be sure to set it up as Read & Write!)
  2. Update the Setup area of rss2twitter.php
    1. This includes consumerKey,consumerToken,oAuthToken,oAuthTokenSecret from dev.twitter, RSS feed URL, and Cache directory (optional)
  3. Authorize your domain for the application on dev.twitter
    1. To setup a test you can always add localhost
  4. Make the /cache/ directory writable or change its location
  5. Copy to your server.
  6. Set up cron job. Example: /usr/local/php5/bin/php /path/to/script/rss2twitter.php

That’s it!

Licensing:

RSS to Twitter is released under the GPL License. This license is provided in license.txt. The Twitter class by Tijs Verkoyen is released under the BSD License and that is included in twitter.php

To do:

(If anyone would like to take these on, please feel free.)

  1. Add an option to easily update the tweet syntax.

Version History:

*2.0 – December 29, 2010
- Now uses OAuth for authentication
- Removed option to tweet only a single blog category
- Added Twitter class by Tijs Verkoyen http://classes.verkoyen.eu/
- Improved caching
- Updated Readme.textile

*1.0 – December 29, 2010
- Tagged and branched for future revision

0.4 – January 25, 2010
- Changed wpUrl to feedUrl
- Changed shortUrl to $post→link

0.3 – January 24, 2010
- categoryToTwitter is optional
- Took away the “plural category name” check

0.2 – January 22, 2010
- Slight code clean up.
- A few readme changes.

0.1 – December 6, 2009
- Initial codebase.

rss2twitter-php5's People

Contributors

cdevroe avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.