PHPackages                             warslett/tweet-sync-doctrine - 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. warslett/tweet-sync-doctrine

ActiveLibrary

warslett/tweet-sync-doctrine
============================

Synchronises Tweets between twitter and a local doctrine repository

0.3.2(6y ago)118[1 PRs](https://github.com/warslett/TweetSyncDoctrine/pulls)MITPHPCI failing

Since Nov 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/warslett/TweetSyncDoctrine)[ Packagist](https://packagist.org/packages/warslett/tweet-sync-doctrine)[ RSS](/packages/warslett-tweet-sync-doctrine/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (8)Versions (11)Used By (0)

TweetSync
=========

[](#tweetsync)

A tool for synchronising a twitter users recent tweets with a local database

Before you start:
-----------------

[](#before-you-start)

You will need to create an application with  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:
-------------

[](#installation)

`composer require warslett/tweet-sync-doctrine`

Setup with Symfony
------------------

[](#setup-with-symfony)

Add the following parameters to your parameters.yml:

```
parameters:
  warslett_tweet_sync.consumer_key: YOUR_CONSUMER_KEY
  warslett_tweet_sync.consumer_secret: YOUR_CONSUMER_SECRET
  warslett_tweet_sync.oauth_access_token: YOUR_OAUTH_ACCESS_TOKEN
  warslett_tweet_sync.oauth_access_token_secret: YOUR_OAUTH_ACCESS_TOKEN_SECRET
```

Add the following resource to the imports at the top of your config.yml;

```
imports:
    - { resource: ../../vendor/warslett/tweet-sync-doctrine/src/Resources/config/services_core.yml }
```

Finally add the doctrine mapping to your doctrine configuration:

```
doctrine:
  orm:
    entity_managers:
      default:
        mappings:
          WArslettTweetSync:
            mapping: true
            type: yml
            dir: %kernel.root_dir%/../vendor/warslett/tweet-sync-doctrine/src/Resources/config/doctrine
            prefix: WArslett\TweetSync\Model
```

Now clear your cache `php app/console cache:clear` and update your database schema `php app/console doctrine:schema:update --force`

Setup without Symfony:
----------------------

[](#setup-without-symfony)

Create your own Console Runner wherever you want:

```
#!/usr/bin/env php
