PHP code example of royalmar / laravel-line-notify

1. Go to this page and download the library: Download royalmar/laravel-line-notify library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

royalmar / laravel-line-notify example snippets


LineNotify::sendMessage('{accessToken}', 'test massage');

LineNotify::sendMessageAndImage('{accessToken}', 'test massage', [
            'imageThumbnail' => 'https://asnanak.net/site/wp-content/uploads/2012/10/source_27_waves_dark_green-240x240.jpg',
            'imageFullsize' => 'https://asnanak.net/site/wp-content/uploads/2012/10/source_27_waves_dark_green-1024x768.jpg'
        ]);

LineNotify::sendMessageAndSticker('{accessToken}', 'test massage', [
            'stickerPackageId' => 1,
            'stickerId' => 10
        ]);
bash
php artisan vendor:publish --tag="line_notify_install"