Download the PHP package phattarachai/line-notify without Composer

On this page you can find all versions of the php package phattarachai/line-notify. 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-notify

The package for Laravel and PHP for Line application notification.

Latest Version Packagist Maintainability

Line Notify is a package for Laravel and PHP application to easily send notification to Line messaging application users or groups. It builds on top of Line Notify API, that provides a fluent interface to send messages, images ,and stickers directly to Line service from Laravel and PHP.

Installing Line Notify

You need to use Composer to install Line-Notify into your project:

Laravel Usage

Add a LINE_ACCESS_TOKEN variable to your .env. You can get an access token for your application from Line Notify API

Send a message via Line Notify.

You can use setToken() to specify other ACCESS_TOKEN you want to use beside from the .env.

Send a message with an image.

You can also specify a thumbnail for your image

You can upload an image from your local path

You can combine image uploading and image url together. The uploaded image will take precedence to image url.

Send a message with sticker. You can find a list of Sticker Package ID and Sticker ID here https://devdocs.line.me/files/sticker_list.pdf

Notice that Line require to have a message for each and every request whether you send an image or sticker you still required to provide a message for the API.

Publishing the configuration file

Alternatively to adding a variable into your .env, you can publish config/line-notify.php file and add your token there.

Run the following Artisan command in your terminal:

You can set the token in this file.

Configuring (Laravel)

Laravel 5.5 and newer

Line Notify wil register itself using Laravel's Auto Discovery.

Laravel 5.4 and older

You'll have to include LineNotifyServiceProvider in your config/app.php:

PHP Usage (outside Laravel)

Screenshot

สนับสนุนผู้พัฒนา

🙋‍♂️ สวัสดีครับ ผมอ๊อฟนะครับ เป็น Full Stack Web Developer มีสร้าง package ขึ้นมาใช้งานในโปรเจคตัวเองที่ใช้งานบ่อย ๆ ถ้ามีข้อเสนอแนะอยากให้ทำ package อะไรบน PHP / Laravel / NodeJS / Python หรือภาษาอื่น ๆ ทักทายมาได้เลยครับ

line: phat-chai

💻 รับงาน Freelance หากมีโปรเจคที่น่าสนใจ หาทีมงานร่วมงาน หาโปรแกรมเมอร์ที่มีประสบการณ์ช่วยแก้โจทย์ที่ท้าทาย ติดต่อมาได้เลยครับ ยินดีให้ความช่วยเหลือและรอสร้างผลงานที่ดีร่วมกันครับ

📄 เข้ามาดูประวัติและผลงานได้ที่ https://phattarachai.dev

License

The MIT License (MIT)


All versions of line-notify with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
guzzlehttp/guzzle Version ^7.2
ext-json Version *
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 phattarachai/line-notify contains the following files

Loading the files please wait ....