Giter Club home page Giter Club logo

php-line-notify's Introduction

php-line-notify

Build Status Code Coverage Scrutinizer Code Quality License: MIT

Simple PHP Line Notify Class

Line Notify Document

Requirement

Composer

Install the latest version with composer

composer require kittinan/php-line-notify

https://packagist.org/packages/kittinan/php-line-notify

Generate Line Notify Token

https://notify-bot.line.me/my/

Usage

Example : notify text message

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

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

Example : notify text with image

$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

See sticker list https://devdocs.line.me/files/sticker_list.pdf

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

Screenshot

Screenshot

License

The MIT License (MIT)

php-line-notify's People

Contributors

kittinan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-line-notify's Issues

A little bit documentation please

I found out that this project is a good one, but do you mind to put some little description of each method/function? It will help us a lot. 😁

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.