silverslice/skype-history

Skype历史记录查看器

dev-master 2017-12-29 04:46 UTC

This package is auto-updated.

Last update: 2024-09-15 18:21:49 UTC


README

一个易于使用的库,用于查看您的Skype聊天历史记录

用途是?

在Ubuntu上更新Skype后,您可能会发现所有的Skype聊天历史记录都是空的。您可以尝试使用这个小库来获取不可用的历史记录。

安装

  1. 使用Composer作为依赖项安装库

    php composer.phar require silverslice/skype-history:dev-master

  2. 安装SkypeHistory

    php composer.phar install

用法

查看已安装库中的examples/history.php文件。您可以复制它或编写自己的页面来显示历史记录。

您需要做的就是找到位于~/.Skype/your_login/目录中的skype的main.db文件,将其放置在您的项目目录中,然后在浏览器中打开页面。

用法示例

// require composer autoload file
require __DIR__ . '/vendor/autoload.php';

use Silverslice\SkypeHistory\Reader;

// create reader passing the path to main.db skype file
$reader = new Reader('data/main.db');

// get all contacts having messages in history
$contacts = $reader->getActiveContacts();

// get all conversation history for contact with login 'silver_slice' for last 1 year
$messages = $reader->getHistory('silver_slice', strtotime('-1 year'), time());