PHPackages                             eric0324/lotify - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. eric0324/lotify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

eric0324/lotify
===============

Lotify is a LINE Notify client SDK that you can build Notify bot quickly.

v1.0.1(6y ago)228MITPHPPHP &gt;=5.4.0

Since May 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/eric0324/lotify)[ Packagist](https://packagist.org/packages/eric0324/lotify)[ RSS](/packages/eric0324-lotify/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Lotify - LINE Notify client SDK
===============================

[](#lotify---line-notify-client-sdk)

[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)[![PRs Welcome](https://camo.githubusercontent.com/dd0b24c1e6776719edb2c273548a510d6490d8d25269a043dfabbd38419905da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667)](https://github.com/eric0324/lotify#contributing)[![PHP version](https://camo.githubusercontent.com/11a15660035e8c9ee4feb2ff387a306c282ca603ad8217140048e5fc5a292d8e/68747470733a2f2f62616467652e667572792e696f2f70682f65726963303332342532466c6f746966792e737667)](https://badge.fury.io/ph/eric0324%2Flotify)

**Lotify** is a [LINE Notify](https://notify-bot.line.me/doc/en/) client SDK that you can build Notify bot quickly.

Usage
=====

[](#usage)

You need a **LINE account** and create a Notify: [Link](https://notify-bot.line.me/my/services/new)

Install package
---------------

[](#install-package)

```
composer require eric0324/lotify

```

Initialize instance
-------------------

[](#initialize-instance)

```
use Ericwu\Lotify\Lotify;

$channelSecret = "";
$clientId = "";
$redirectUri = "";
$lotify = new Lotify([
    'channelSecret'=> $channelSecret,
    'clientId' => $clientId,
    'redirectUri' => $redirectUri
]);
```

Get authorizer link
-------------------

[](#get-authorizer-link)

```
$link = $lotify->getAuthLink('');
echo($link);
# https://notify-bot.line.me/oauth/authorize?scope=notify&response_type=code&client_id=QxUxF..........i51eITH&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fnotify&state=foo
```

Get access token
----------------

[](#get-access-token)

```
$access_token = $lotify->getAccessToken('');
echo($access_token);
# N6g50DiQZk5Xh...25FoFzrs2npkU3z
```

Get Status
----------

[](#get-status)

```
$status = $lotify->getStatus('');
echo($status);
# {'status': 200, 'message': 'ok', 'targetType': 'USER', 'target': 'Eric wu'}
```

Send message
------------

[](#send-message)

```
$response = $lotify->sendMessage(access_token='', message='');
echo($response);
# {'status': 200, 'message': 'ok'}
```

Send message with Sticker
-------------------------

[](#send-message-with-sticker)

You can find stickerId and stickerPackageId [here](https://devdocs.line.me/files/sticker_list.pdf)

```
$response = $lotify->sendMessageWithSticker('', '', '', '');
echo($response);
# {'status': 200, 'message': 'ok'}
```

Send message with Image url
---------------------------

[](#send-message-with-image-url)

```
$image = $lotify->sendMessageWithImageUrl(
    '',
    '',
    '',
    '',
);
echo($image);
# {'status': 200, 'message': 'ok'}
```

Revoke access token
-------------------

[](#revoke-access-token)

```
$revoke = $lotify->revoke('');
echo($revoke);
# {'status': 200, 'message': 'ok'}
```

License
=======

[](#license)

MIT © [Eric Wu](https://ericwu.asia/about/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~0 days

Total

2

Last Release

2203d ago

### Community

Maintainers

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

---

Top Contributors

[![eric0324](https://avatars.githubusercontent.com/u/3984670?v=4)](https://github.com/eric0324 "eric0324 (5 commits)")

### Embed Badge

![Health badge](/badges/eric0324-lotify/health.svg)

```
[![Health](https://phpackages.com/badges/eric0324-lotify/health.svg)](https://phpackages.com/packages/eric0324-lotify)
```

PHPackages © 2026

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