PHPackages                             jeurboy/line-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. jeurboy/line-sdk

ActiveLibrary[API Development](/categories/api)

jeurboy/line-sdk
================

Line SDK for PHP.

0.1.1(7y ago)04PHPPHP ^7.0

Since Dec 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jeurboy/line-php-sdk)[ Packagist](https://packagist.org/packages/jeurboy/line-sdk)[ RSS](/packages/jeurboy-line-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

line-php-sdk
============

[](#line-php-sdk)

PHP Line SDK Class

[Line Notify Document](https://notify-bot.line.me/doc/en/)

Requirement
-----------

[](#requirement)

- PHP 7+
- [guzzlehttp](https://github.com/guzzle/guzzle)

Composer
--------

[](#composer)

Install the latest version with composer

```
composer require jeurboy/line-php-sdk

```

Generate Line Notify Token
--------------------------

[](#generate-line-notify-token)

Notify Usage
------------

[](#notify-usage)

*Example : Simple notify with text message*

```
namespace Jeurboy\LineSdk;

require_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload

$receipientToken = '========== Notify token ==========';

$line_noti = Line::notify($receipientToken);

$line_text = Line::textMessage();
$line_text->setMessage('Test');

if ($line_noti->send( $line_text ) !== true) {
    echo $line_noti->getErrorMessage()."\n";
} else {
    echo "Success\n";
}
```

Chat bot auto reply usage
-------------------------

[](#chat-bot-auto-reply-usage)

*Example : Chat bot and auto reply with text message*

```
namespace Jeurboy\LineSdk;

require_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload

$accessToken = '========== Access token ==========';
$channelSecret = '========== Channel secret key ==========';

$request = file_get_contents('php://input');   // Get request content

$line_bot = Line::bot($accessToken, $channelSecret);

$line_text = Line::textMessage();

$parser = Line::eventParser($request);
$events = $parser->parseEvents();

foreach ($events as $event) {
    switch ($event->getType()) {
        case 'Text':
            $line_text->setMessage('Test reply : '.$event->getMessage());
            $line_bot->send($event->getReplyToken(), $line_text);

            break;
    }
}
```

License
=======

[](#license)

Jeurboy License

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

2

Last Release

2699d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccc2ac14ce7218491060332c0df336144722b9c46a36f97ccacfe79bde3b3f80?d=identicon)[jeurboy](/maintainers/jeurboy)

---

Top Contributors

[![jeurboy](https://avatars.githubusercontent.com/u/7686684?v=4)](https://github.com/jeurboy "jeurboy (3 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/jeurboy-line-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/jeurboy-line-sdk/health.svg)](https://phpackages.com/packages/jeurboy-line-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
