Download the PHP package mesak/laravel-linebot without Composer

On this page you can find all versions of the php package mesak/laravel-linebot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?
mesak/laravel-linebot
Rate from 1 - 5
Rated 4.00 based on 1 reviews

Informations about the package laravel-linebot

Laravel LINEBOT

採用 laravel response 的方式來回應 LINEBOT 的訊息

安裝

設定檔替換

將設定檔複製到專案中

修改 config/linebot.php 中的設定

使用

利用標準檔案 App\Listeners\LineBotListener 來建立 LINEBOT 的 Listener

LineBotListener.php

LINEBOT 預設的事件:

設定

.env 中加入

在 route 中加入,對應 line webhook 的 post 事件

Event 事件

套件利用處理 Request 把內容塞入 Mesak\LineBot\Events\MessageEvent 中,利用 BotEventSubscribe 發起對話事件,最後回傳 Mesak\LineBot\Actions\BaseAction 的事件來處理需要的回應

擴充

如果需要擴充 LINEBOT 的功能,可以在 App\Providers\AppServiceProvider 中的 register 加入 \Mesak\LineBot\Contracts\Bot::class 合約綁定

自訂 EntityBot 類別

如果要從外部呼叫 Bot,可以使用 Facades 靜態介面

舉例:


All versions of laravel-linebot with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
linecorp/line-bot-sdk Version ^7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mesak/laravel-linebot contains the following files

Loading the files please wait ....