2017 © Pedro Peláez
 

library php-line-notify

PHP Line Notify

image

kittinan/php-line-notify

PHP Line Notify

  • Sunday, December 17, 2017
  • by kittinan
  • Repository
  • 9 Watchers
  • 30 Stars
  • 1,134 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 25 Forks
  • 0 Open issues
  • 6 Versions
  • 25 % Grown

The README.md

php-line-notify

Build Status Code Coverage Scrutinizer Code Quality License: MIT, (*1)

Simple PHP Line Notify Class, (*2)

Line Notify Document, (*3)

Requirement

Composer

Install the latest version with composer, (*4)

composer require kittinan/php-line-notify

https://packagist.org/packages/kittinan/php-line-notify, (*5)

Generate Line Notify Token

https://notify-bot.line.me/my/, (*6)

Usage

Example : notify text message, (*7)

$token = 'YOUR LINE NOTIFY TOKEN';
$ln = new KS\Line\LineNotify($token);

$text = 'Hello Line Notify';
$ln->send($text);

Example : notify text with image, (*8)

$text = 'Hello Line Notify';
$image_path = '/YOUR/IMAGE/PATH'; //Line notify allow only jpeg and png file
$ln->send($text, $image_path);

//HTTP or HTTPS image path
$image_path = 'https://lorempixel.com/800/600/'; //Line notify allow only jpeg and png file
$ln->send($text, $image_path);

Example : notify text with sticker, (*9)

See sticker list https://devdocs.line.me/files/sticker_list.pdf, (*10)

$text = 'Hello Sticker';
$sticker = ['stickerPackageId' => '1', 'stickerId' => '401'];
$ln->send($text, null, $sticker);

Screenshot

Screenshot, (*11)

License

The MIT License (MIT), (*12)

The Versions

17/12 2017

dev-master

9999999-dev

PHP Line Notify

  Sources   Download

MIT

The Requires

 

The Development Requires

line line notify

17/12 2017

0.5

0.5.0.0

PHP Line Notify

  Sources   Download

MIT

The Requires

 

The Development Requires

line line notify

14/10 2017

0.4

0.4.0.0

PHP Line Notify

  Sources   Download

MIT

The Requires

 

The Development Requires

line line notify

13/08 2017

0.3

0.3.0.0

PHP Line Notify

  Sources   Download

MIT

The Requires

 

The Development Requires

line line notify

13/08 2017

0.2

0.2.0.0

PHP Line Notify

  Sources   Download

MIT

The Requires

 

The Development Requires

line line notify

15/01 2017

0.1

0.1.0.0

PHP Line Notify

  Sources   Download

MIT

The Requires

 

The Development Requires

line line notify