{"repo":"line/line-bot-sdk-php","free":true,"listed":false,"github":"https://github.com/line/line-bot-sdk-php","clone":"git clone https://github.com/line/line-bot-sdk-php.git","description":"LINE Messaging API SDK for PHP","language":"PHP","stars":735,"topics":["line","bot","sdk","php","linebot"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"LINE Messaging API SDK for PHP Introduction The LINE Messaging API SDK for PHP makes it easy to develop bots using LINE Messaging API, and you can create a sample bot within minutes. Documentation See the official API documentation for more information. - English: https://developers.line.biz/en/docs/messaging-api/overview/ - Japanese: https://developers.line.biz/ja/docs/messaging-api/overview/ PHPDoc - https://line.github.io/line-bot-sdk-php/ Requirements - PHP 8.2 or later Installation Install the LINE Messaging API SDK using Composer. Getting started Create the bot client instance The bot client instance is a handler of the Messaging API. You must use the Client with GuzzleHttp\\ClientInterface implementation. Call API You can call an API through the messagingApi instance. A very simple example: This procedure sends a message to the destination that is associated with . We also support setter style. How to get x-line-request-id header and error message You may need to store the x-line-request-id header obtained as a response from several APIs. In this case, please use WithHttpInfo functions. You can get headers and status codes. The x-line-accepted-request-id or content-type header can also be obtained in the same way. You can get error messages from \\LINE\\Clients\\MessagingApi\\ApiException when you use MessagingApiApi . Each client defines its own exception class. When you need to get x-line-accepted-request-id header from error response, you can get it: $headers['x-line-acc","default_branch":null,"files":null,"tree":[],"storefront":"/r/line","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/line/line-bot-sdk-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}