Download the PHP package jose13/larave-linebot-lottery without Composer

On this page you can find all versions of the php package jose13/larave-linebot-lottery. 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?

Informations about the package larave-linebot-lottery

laravel-linebot-lottery

packagist WSL laravel php Version Total Downloads License

說明

藉由 Line bot 及爬蟲應用,可於 Line 中獲取樂透號碼(最新球號或指定日期球號),以及基本可自定義的對話回應功能。

準備

一個 HTTPS 網址

本人是使用 ngrok 作為臨時的測試網址使用。

註冊及設定一個 Messaging API 頻道

前往 Line Developers 建立一個新的 Messaging API 頻道,可以參考 官方教學

創建完成後進入頻道頁面

創建頻道

記下頻道頁面中 Basic setting 選項裡,Channel secret 產生的數值。

記下頻道頁面中 Messaging API 選項裡,Channel access token 產生的數值。

頻道頁面中 Messaging API 選項裡,設定 Webhook :

設定webhook網址

將 Line 回應設定成下圖 :

設定Line回應

創建一個 Laravel 專案

開啟.env 設定記下的Channel secretChannel access token

注意:LINE_BOT_CHANNEL_ACCESS_TOKENLINE_BOT_CHANNEL_SECRET 名稱需一致不得更改

安裝

使用 Composer 安裝套件:

發布設定檔案(可選擇不發布,將以預設檔呈現功能項目):

開始使用

立即使用

如果選擇不發布設定檔,於安裝步驟結束後即可將自己創建的 Line bot 加入 Line 好友開始使用。
( 使用過程中也可發布設定檔進行自定義修改 )

自定義設定檔後開始使用

發布設定檔案後,至 config/LineBotServiceConfig.php 進行自定義調整,完成後即可將自己創建的 Message Api Line bot 加入好友開始使用。

自定義各聊天室裡(User(個人)Group(群組)Room(群聊)) messageType是否開啟服務。

true為開啟 false為關閉功能

注意:

  • 目前套件僅支援 TEXT文字訊息自動回應功能。其餘功能設為true不會有任何作用
  • 關閉TEXT 文字訊息服務,等同於不會開啟QuickReplyButton功能按鈕

自定義各聊天室裡,訊息自動回應內容

選擇各聊天室開放的按鈕功能

目前支援的功能按鈕清單:

  • 最新威力彩
  • 最新大樂透
  • 最新539
  • 最新三種遊戲
  • 近3期三種遊戲
  • 近5期威力彩
  • 近5期大樂透
  • 近5期539
  • 近10期三種遊戲
  • 指定威力彩日期
  • 指定大樂透日期
  • 指定539日期

啟用功能設為 true ,關閉設為為 false

Demo

歡迎訊息、文字回應、QuickReply按鈕功能開啟

https://user-images.githubusercontent.com/16284391/135817631-0bac0616-23cf-407e-b2ac-7b9cfe357508.mp4

一般請求資訊服務按鈕

https://user-images.githubusercontent.com/16284391/135817645-71f30e3b-5cd9-478b-9dcc-37a418b99efe.mp4

指定日期請求服務按鈕

https://user-images.githubusercontent.com/16284391/135817661-18059d7d-ddfe-4676-b987-a65e43a07eeb.mp4


All versions of larave-linebot-lottery with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
ext-http Version *
ext-json Version *
fabpot/goutte Version ^4.0
fideloper/proxy Version ^4.4
fruitcake/laravel-cors Version ^2.0
guzzlehttp/guzzle Version ^7.0.1
laravel/framework Version ^8.12
laravel/tinker Version ^2.5
linecorp/line-bot-sdk Version ^7.0
symfony/browser-kit Version ^5.3.4
symfony/css-selector Version ^5.2
symfony/dom-crawler Version ^v5.3.4
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 jose13/larave-linebot-lottery contains the following files

Loading the files please wait ....