Download the PHP package ratiw/line-messaging without Composer

On this page you can find all versions of the php package ratiw/line-messaging. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package line-messaging

LINE Messaging for Laravel

Simplify sending LINE messages using Messaging API for Laravel

Latest Version on Packagist Total Downloads

This package was developed to replace the use LINE Notify as it will be discontinued on March 31, 2025.

Basic Usage

Understanding LINE Messaging API

In order to send LINE messages via LINE Messaging API, you need the following:

Getting those information can be tricky, but you usually do it once and then you can reuse it.

If you do not know how to get those information, please refer to the LINE Messaging API documentation, Or search for video tutorials on YouTube.

Getting User ID, Group ID, or Room ID

You can definitely use a free webhook.site to gather user IDs with the LINE Messaging API, but there's a key point to remember: The user ID will only be included in the webhook data if the user has consented to share their profile information with your LINE Official Account.

That means the user has to add your LINE Official Account as a friend (and, you'll get the user ID from the webhook), or invite your LINE Official Account to a group chat (and, you'll get the group ID from the webhook).

Message Types

This package currently supports the following message types:

More might be added in the future, but no promises here. :smiley:

Installation

You can install the package via composer:

Usage

Use the LineMessaging::channel() to specify the channel access token and chain one of the following methods to specify the target user, group, or room.

Then, chain one of the available message types to send the message.

Sending text message

text(string $message, $emojis = [], string $quoteToken = null)


Sending text message with emojis

To include emojis in the text message, you have to specify the emoji placeholders in the text message.

The placeholder is the $ character in the message.

Then, you have to includes an array of emoji objects in the second argument.

Each emoji object must have the following keys:

See


Sending sticker

sticker($packageId, $stickerId)

See


Sending image

image(string $imageUrl, string $previewUrl = null)

Note

  • previewUrl is optional.
  • given URL must be https scheme

See


Sending video

video(string $videoUrl, string $previewImageUrl = null, string $trackingId = null)

Note

  • previewImageUrl and trackingId are optional.
  • given URL must be https scheme

Sending audio

audio(string $audioUrl, int $duration)

Note

  • given URL must be https scheme
  • duration is in milliseconds

Sending location

location(string $title, string $address, float $latitude, float $longitude)

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.


All versions of line-messaging with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ratiw/line-messaging contains the following files

Loading the files please wait ....