|
1 | | -line-bot-sdk-php-tiny |
2 | | -== |
3 | | -[](LICENSE) [](https://developers.line.me) [](https://github.com/supersonictw/line-bot-sdk-php-tiny) [](https://php.net) |
| 1 | +# line-bot-sdk-php-tiny |
| 2 | + |
| 3 | +[](LICENSE) |
| 4 | +[](https://developers.line.me) |
| 5 | +[](https://git.io/Jfvrg) |
| 6 | +[](https://php.net) |
4 | 7 |
|
5 | 8 | [](https://line.me) |
6 | 9 |
|
7 | | -A simple SDK for the LINE Messaging API for PHP. |
| 10 | +A simple SDK for the LINE Messaging API with PHP. |
8 | 11 |
|
9 | | -Description |
10 | | --- |
| 12 | +## Description |
11 | 13 |
|
12 | | -The origin version is [line-bot-sdk-tiny](https://github.com/line/line-bot-sdk-php/tree/master/line-bot-sdk-tiny) by LINE Corp. |
| 14 | +This is a third party SDK for LINE Messaging API that extended more functions from [line-bot-sdk-tiny](https://git.io/JUUXz). |
13 | 15 |
|
14 | | -The version of LINE Messaging API by [SuperSonic](https://randychen.tk) as Third Party Update to support more LINE features. |
| 16 | +As <https://github.com/line/line-bot-sdk-php/issues/163> said, the original version which is created by [LINE Corporation](https://linecorp.com) has no plan to update, so that I created this one. |
15 | 17 |
|
16 | | -The API has only a "api.php" file to include into your LINEBOT. |
| 18 | +There is only an `api.php` file for you to include it into your LINE Messaging BOT as easy for someone who don't need the full API if he only wants to make a "Simple" BOT. |
17 | 19 |
|
18 | | -I think that it don`t need full API if someone wants to make a "Simple" BOT. |
| 20 | +If you want the official LINE Messaging API for `PHP 7.x`, go to [line-bot-sdk-php](https://github.com/line/line-bot-sdk-php) for getting the full version. |
19 | 21 |
|
20 | | -By the way, as a file, you can carry your BOT to anywhere you want. |
| 22 | +## Note |
21 | 23 |
|
22 | | -If you want official PHP LINEAPI, see [line-bot-sdk-php](https://github.com/line/line-bot-sdk-php) to get full version. |
| 24 | +It's using the function "file_get_contents()" as its HTTP Client for connecting to LINE API Platform. |
23 | 25 |
|
24 | | -Notice |
25 | | --- |
26 | | -The API uses "file_get_contents()" as HttpClient. |
| 26 | +As the result, it might be crashed by SELinux. |
27 | 27 |
|
28 | | -So it maybe will be crashed by SELinux. |
| 28 | +There are some solutions for resolving this problem: |
29 | 29 |
|
30 | | -There are some solutions: |
31 | 30 | + Disable SELinux |
32 | 31 | + Add SELinux Policy |
33 | 32 | + To use [line-bot-sdk-php](https://github.com/line/line-bot-sdk-php) |
34 | 33 |
|
35 | | -Example |
36 | | --- |
| 34 | +## Example |
37 | 35 |
|
38 | | -Try to read [examples](./examples/). |
| 36 | +Try to read and learn from [examples](./examples/) for understanding how to create a BOT with this API. |
39 | 37 |
|
40 | | -When running examples, make sure that you have set your Channel access token and Channel secret. |
| 38 | +Before running the examples, please make sure that you have setted the Channel access token and Channel secret of your BOT. |
41 | 39 |
|
42 | | -Requirements |
43 | | --- |
| 40 | +## Requirement |
44 | 41 |
|
45 | 42 | PHP >= 5.4 |
46 | 43 |
|
47 | | -License |
48 | | --- |
| 44 | +## License |
49 | 45 |
|
50 | | -``` |
51 | | -Copyright 2016 LINE Corporation |
| 46 | + Copyright 2016 LINE Corporation |
52 | 47 |
|
53 | | -LINE Corporation licenses this file to you under the Apache License, |
54 | | -version 2.0 (the "License"); you may not use this file except in compliance |
55 | | -with the License. You may obtain a copy of the License at: |
| 48 | + LINE Corporation licenses this file to you under the Apache License, |
| 49 | + version 2.0 (the "License"); you may not use this file except in compliance |
| 50 | + with the License. You may obtain a copy of the License at: |
56 | 51 |
|
57 | | - https://www.apache.org/licenses/LICENSE-2.0 |
| 52 | + https://www.apache.org/licenses/LICENSE-2.0 |
58 | 53 |
|
59 | | -Unless required by applicable law or agreed to in writing, software |
60 | | -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
61 | | -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
62 | | -License for the specific language governing permissions and limitations |
63 | | -under the License. |
64 | | -``` |
| 54 | + Unless required by applicable law or agreed to in writing, software |
| 55 | + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 56 | + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 57 | + License for the specific language governing permissions and limitations |
| 58 | + under the License. |
0 commit comments