Download the PHP package warslett/tweet-sync-doctrine without Composer
On this page you can find all versions of the php package warslett/tweet-sync-doctrine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download warslett/tweet-sync-doctrine
More information about warslett/tweet-sync-doctrine
Files in warslett/tweet-sync-doctrine
Package tweet-sync-doctrine
Short Description Synchronises Tweets between twitter and a local doctrine repository
License MIT
Informations about the package tweet-sync-doctrine
TweetSync
A tool for synchronising a twitter users recent tweets with a local database
Before you start:
You will need to create an application with https://apps.twitter.com/ to get your own consumer key and consumer secret. You will also need to generate an oauth access token and oauth secret with read access to your twitter account.
Installation:
composer require warslett/tweet-sync-doctrine
Setup with Symfony
Add the following parameters to your parameters.yml:
Add the following resource to the imports at the top of your config.yml;
Finally add the doctrine mapping to your doctrine configuration:
Now clear your cache php app/console cache:clear
and update your database schema php app/console doctrine:schema:update --force
Setup without Symfony:
Create your own Console Runner wherever you want:
Then run init to initialise the tables in the db: php app/console tweetsync:init
(replace app/console with the location of your console runner)
Usage:
To synchronise a user "BBCBreaking": php app/console tweetsync:user BBCBreaking
(replace app/console with the location of your console runner)
Add to the crontab for a regular sync: http://crontab.org/
To get tweets that have been synchronised for use in your application:
All versions of tweet-sync-doctrine with dependencies
symfony/dependency-injection Version >=2.5.0
symfony/console Version >=2.5.0
doctrine/orm Version >=2.5.0
warslett/tweet-sync Version 0.1.*