A fork from embr, with better compatibility and functionality.
PHP JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
AstroProfundis Merge branch 'devtest'
Conflicts:
	oauth.php
Latest commit 3be4084 Jan 20, 2015
Permalink
Failed to load latest commit information.
ajax Minor fix 2 Jun 22, 2014
css Use css for arrow on page head Jul 5, 2014
img Use css for arrow on page head Jul 5, 2014
inc Use font icon on search button Jun 29, 2014
js Font icons in right menu Jun 28, 2014
lib Move API_URL to twitteroauth.php Jun 22, 2014
.gitignore Update: .gitignore Jan 17, 2014
.htaccess Revert "The rewrite rule is unnecessary" Oct 26, 2013
CHANGELOG Fix: use original url instead of t.co on user profile May 23, 2013
LICENSE Add: LICENSE file, GPLv3 Jul 17, 2013
README.md Update: README.md Apr 26, 2014
TODO Fix&Improve: API outage handling Oct 25, 2013
all.php Improve: show http code on error page Jan 17, 2014
authorize.php fork from embr r91 Feb 15, 2013
blocks.php Change user lists tab titles Jun 7, 2014
error.php Improve: show http code on error page Jan 17, 2014
favor.php Remove tipsy, which is ugly and CPU killer Jun 3, 2014
followers.php fork from embr r91 Feb 15, 2013
friends.php fork from embr r91 Feb 15, 2013
img.php fork from embr r91 Feb 15, 2013
index.php Remove tipsy, which is ugly and CPU killer Jun 3, 2014
list.php Remove tipsy, which is ugly and CPU killer Jun 3, 2014
list_followers.php fork from embr r91 Feb 15, 2013
list_members.php fork from embr r91 Feb 15, 2013
lists.php Fix issue #67, but I'm not sure if it's Twitter's bug. Nov 25, 2014
login.php Screen name cookie needs no crypt Jun 4, 2014
logout.php Screen name cookie needs no crypt Jun 4, 2014
message.php Remove tipsy, which is ugly and CPU killer Jun 3, 2014
mutes.php Official muting feature Jun 4, 2014
oauth.php Fix wrong redirection when installed in sub dir Jan 20, 2015
profile.php Remove tipsy, which is ugly and CPU killer Jun 3, 2014
replies.php Remove tipsy, which is ugly and CPU killer Jun 3, 2014
retweets.php Remove tipsy, which is ugly and CPU killer Jun 3, 2014
robots.txt fork from embr r91 Feb 15, 2013
search.php Font icon on ajax loading spinner Jun 29, 2014
setting.php Remove wrong line... Jun 9, 2014
share.php Font icon on ajax loading spinner Jun 29, 2014
status.php Support showing multiple pictures from extended_entities Jun 14, 2014
user.php Official muting feature Jun 4, 2014

README.md

embrr, a fork from embr

This is a twitter web client fork from embr, mainly based on r91 and merged necessary changes until the latest revisions, updated to Twitter REST API v1.1 and have some improved features.

You can download the zip archive of current version here if you don't want to use git-clone.

How to Install

The installation of embrr is pretty much the same with embr's, you just need to get the source, rename config.sample.php in /lib to config.php, edit it with your own app information and upload it to your hosting directory.

And here are some tips you may want to know:

  • embrr requires php-curl and php-bcmath
  • while not necessarily required, php-mcrypt is recommended
  • embrr is compatible with PHP from version 5.2 to 5.5, we didn't test it on 5.1 or older versions

Installing in sub-directory

If you need to install embrr in a sub-directory of your website, say, in /embrr, you'll need to adjust the .htaccess file with /embrr/user.php and /embrr/status.php instead of /user.php and /status.php.

nginx

For nginx users, you'll need to add these lines to your nginx config file:

location / {
    if (!-f $request_filename) {
        rewrite ^/(\d+)$ /status.php?id=$1 last;
        rewrite ^/(\w+)$ /user.php?id=$1 last;
        break;
    }
}

And of course, adjust it if you are in a sub-directory.

Notes

If you're having issues changing pages or sending DMs, try modify your php.ini as follows:

precision = 24 ;Use a value lager than 19 to replace the default 14

embrr, 一个修改版的 embr

这是一个从 embr 修改而来的 twitter 网页端,主要基于 r91 版本并合并了后续修订版的必要更新,升级到了 Twitter REST API v1.1 并有一些功能上的改进。

如果不想使用 git-clone 获取代码,可以点这里下载当前版本的 zip 压缩包。

安装方法

安装 embrr 的方法和 embr 原版基本相同,只需要下载代码包,重命名 /lib 中的 config.sample.php 文件为 config.php, 编辑此配置文件填入适当的 app 信息,再将代码上传至网站空间即可。

有几点值得注意的地方是:

  • embrr 依赖于 php-curlphp-bcmath 组件
  • 虽然不是必需依赖,但建议安装 php-mcrypt 组件
  • embrr 兼容 PHP 5.2 至 5.5 的版本,我们没有测试过 5.1 及之前版本

在二级目录中安装

如果需要将 embrr 安装在二级目录中,例如安装在 /embrr 中,则需要修改 .htaccess 文件,使用 /embrr/user.php/embrr/status.php 替换 /user.php/status.php.

nginx

对于 nginx 用户,需要在配置文件中加入以下代码:

location / {
    if (!-f $request_filename) {
        rewrite ^/(\d+)$ /status.php?id=$1 last;
        rewrite ^/(\w+)$ /user.php?id=$1 last;
        break;
    }
}

同样,如果在二级目录中安装则需适当调整。

附注

如果翻页或者发送 DM 时遇到问题,尝试在 php.ini 中做如下修改:

precision = 24 ;使用大于 19 的值替换默认值 14

As I'm not an expert of PHP nor twitter API, do expect bugs everywhere.

All helps are welcomed!

请做好 bug 满天飞的心理准备以及欢迎拍砖和协助修改。