1 embrr, a fork from embr
3 This is a twitter web client fork from [embr](https://code.google.com/p/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.
5 You can download the zip archive of current version [here](https://github.com/AstroProfundis/embrr/zipball/master) if you don't want to use `git-clone`.
9 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.
11 And here are some tips you may want to know:
13 * embrr requires `php-curl` and `php-bcmath`
14 * while not necessarily required, `php-mcrypt` is recommended
15 * embrr is compatible with PHP from version 5.2 to 5.5, we didn't test it on 5.1 or older versions
17 Installing in sub-directory
19 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`.
23 For nginx users, you'll need to add these lines to your nginx config file:
26 if (!-f $request_filename) {
27 rewrite ^/(\d+)$ /status.php?id=$1 last;
28 rewrite ^/(\w+)$ /user.php?id=$1 last;
32 And of course, adjust it if you are in a sub-directory.
36 If you're having issues changing pages or sending DMs, try modify your `php.ini` as follows:
38 precision = 24 ;Use a value lager than 19 to replace the default 14
45 这是一个从 [embr](https://code.google.com/p/embr/) 修改而来的 twitter 网页端,主要基于 `r91` 版本并合并了后续修订版的必要更新,升级到了 Twitter REST API `v1.1` 并有一些功能上的改进。
47 如果不想使用 `git-clone` 获取代码,可以点[这里](https://github.com/AstroProfundis/embrr/zipball/master)下载当前版本的 zip 压缩包。
51 安装 embrr 的方法和 embr 原版基本相同,只需要下载代码包,重命名 `/lib` 中的 `config.sample.php` 文件为 `config.php`, 编辑此配置文件填入适当的 app 信息,再将代码上传至网站空间即可。
55 * embrr 依赖于 `php-curl` 和 `php-bcmath` 组件
56 * 虽然不是必需依赖,但建议安装 `php-mcrypt` 组件
57 * embrr 兼容 PHP 5.2 至 5.5 的版本,我们没有测试过 5.1 及之前版本
61 如果需要将 embrr 安装在二级目录中,例如安装在 `/embrr` 中,则需要修改 `.htaccess` 文件,使用 `/embrr/user.php` 与 `/embrr/status.php` 替换 `/user.php` 和 `/status.php`.
65 对于 nginx 用户,需要在配置文件中加入以下代码:
68 if (!-f $request_filename) {
69 rewrite ^/(\d+)$ /status.php?id=$1 last;
70 rewrite ^/(\w+)$ /user.php?id=$1 last;
78 如果翻页或者发送 DM 时遇到问题,尝试在 `php.ini` 中做如下修改:
80 precision = 24 ;使用大于 19 的值替换默认值 14
83 As I'm not an expert of PHP nor twitter API, do expect bugs everywhere.
85 All helps are welcomed!
87 请做好 bug 满天飞的心理准备以及欢迎拍砖和协助修改。