定制 dotzecker/tuiter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dotzecker/tuiter

最新稳定版本:v0.1

Composer 安装命令:

composer require dotzecker/tuiter

包简介

Twitter archive manager

README 文档

README

Build Status Scrutinizer Code Quality Coverage Status SensioLabsInsight

1. Installation

The recommended way to install it is through Composer. Run the following command in order to install it:

composer require dotzecker/tuiter

2. Usage

First, download you Twitter archive by clicking "Request your archive" in https://twitter.com/settings/account.

The API is very simple and intuitive:

use Tuiter\Tuiter;

// Let's load our archive
$tweets = Tuiter::fromArchive(__DIR__ . '/your/awesome/path/to/tweets.csv');

Now you are able to manage your tweets in a fluent way, for example:

$unwantedTweets = $tweets->retweets()->before('2014-05-20')->get();

This is the list of available filters:

  • ->retweets($are = true)
  • ->replies($are = true)
  • ->before($date)
  • ->after($date)
  • ->between($startDate, $endDate)
  • ->contains($text, $contains = true)
  • ->containsInUrl($text)

3. Delete Tweets

In order to delete tweets from your timeline, the implementation is:

use Tuiter\TweetDestroyer;

$destroyer = TweetDestroyer::withParams(
    'Consumer Key', 'Consumer Secret', 'Access Token', 'Access Token Secret'
);

foreach ($unwantedTweets as $tweet) {
    $destroyer->destroy($tweet);
}

统计信息

  • 总下载量: 29
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-08