reallifekip / line-webhook-dto
A PHP Data Transfer Object (DTO) library for handling LINE webhooks.
Installs: 94
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/reallifekip/line-webhook-dto
Requires
- php: ^8.1
- reallifekip/immutable-base: ^3.0
This package is auto-updated.
Last update: 2025-12-14 12:09:50 UTC
README
A PHP Data Transfer Object (DTO) library for handling LINE webhooks.
一個用來處理 LINE Webhook 的 PHP DTO(資料傳輸物件)套件,將原始 JSON Payload 轉換為型別安全的物件。
How to use
Simply pass the data received from the LINE Webhook endpoint as an array to the constructor of ReallifeKip\LineWebhookDTO\Webhook.
直接把 Line Webhook 端點收到的資料以陣列形式作為第一個參數建構 ReallifeKip\LineWebhookDTO\Webhook 即可
Installation
composer require reallifekip/line-webhook-dto