pr0ph0z / nyetbot
Lite SDK for LINE Bot API
Requires
- php: >=7.1
- vlucas/phpdotenv: ^2.5@dev
Requires (Dev)
- phpdocumentor/phpdocumentor: dev-master
- phpunit/phpunit: 7
- squizlabs/php_codesniffer: ^3.0@dev
This package is auto-updated.
Last update: 2024-04-19 14:48:04 UTC
README
LINE Messaging API SDK Lite for PHP.
Installation
Using Composer
composer require pr0ph0z/nyetbot
then
composer install
Application Key
The next thing you should do after installing packages is set your application key that is needed for the bot. You can rename the .env.example to .env or copy the .env.example then rename it to .env.
Keys
As by the 0.0.1 version, there's 3 key in .env file.
LINE_CHANNEL_ACCESS_TOKEN=
LINE_CHANNEL_SECRET=
LINE_TEST_ID=
You can obtain the Lchannel access token and channel secret from your [Line Developers page] (https://developers.line.me/console/). LINE_TEST_ID is optional. You can fill it with your line ID if you want to do a test and the test result will be sended to your line account.
Examples
All examples can be found here
Contribute
Contributing are welcome. Just clone this repo, and make a pull request.