OSDN Git Service

xctcc/embrr
[embrj/master.git] / README.md
1 embrr, a fork from embr
2 ========
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.
4
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`.
6
7 How to Install
8 --------
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.
10
11 And here are some tips you may want to know:
12
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
16
17 Installing in sub-directory
18 --------
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`.
20
21 nginx
22 --------
23 For nginx users, you'll need to add these lines to your nginx config file:
24
25     location / {
26         if (!-f $request_filename) {
27             rewrite ^/(\d+)$ /status.php?id=$1 last;
28             rewrite ^/(\w+)$ /user.php?id=$1 last;
29             break;
30         }
31     }
32 And of course, adjust it if you are in a sub-directory.
33
34 Notes
35 --------
36 If you're having issues changing pages or sending DMs, try modify your `php.ini` as follows:
37
38     precision = 24 ;Use a value lager than 19 to replace the default 14