{"id":34008714,"url":"https://github.com/phattarachai/line-notify","last_synced_at":"2025-12-13T11:44:55.453Z","repository":{"id":54302117,"uuid":"338516975","full_name":"phattarachai/line-notify","owner":"phattarachai","description":"PHP and Laravel API for send notification with Line application","archived":false,"fork":false,"pushed_at":"2024-03-19T07:11:24.000Z","size":307,"stargazers_count":16,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T05:51:45.384Z","etag":null,"topics":["laravel","line","notification","php"],"latest_commit_sha":null,"homepage":"https://phattarachai.dev/line-notify-laravel-php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phattarachai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["phattarachai"],"ko_fi":"phattarachai"}},"created_at":"2021-02-13T07:01:54.000Z","updated_at":"2025-10-06T09:09:34.000Z","dependencies_parsed_at":"2022-08-13T11:30:26.924Z","dependency_job_id":null,"html_url":"https://github.com/phattarachai/line-notify","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/phattarachai/line-notify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phattarachai%2Fline-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phattarachai%2Fline-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phattarachai%2Fline-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phattarachai%2Fline-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phattarachai","download_url":"https://codeload.github.com/phattarachai/line-notify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phattarachai%2Fline-notify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27705075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","line","notification","php"],"created_at":"2025-12-13T11:44:54.871Z","updated_at":"2025-12-13T11:44:55.448Z","avatar_url":"https://github.com/phattarachai.png","language":"PHP","funding_links":["https://github.com/sponsors/phattarachai","https://ko-fi.com/phattarachai"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"/art/line-notify-banner.jpg\" alt=\"Line Notify\"\u003e\n\n**The package for Laravel and PHP for Line application notification.**\n\n[![Latest Version](https://img.shields.io/packagist/v/phattarachai/line-notify.svg)](https://github.com/phattarachai/line-notify/releases)\n[![Packagist](https://img.shields.io/packagist/dt/phattarachai/line-notify.svg)](https://github.com/phattarachai/line-notify/releases)\n[![Maintainability](https://api.codeclimate.com/v1/badges/600b42e19f568f18d8ab/maintainability)](https://codeclimate.com/github/phattarachai/line-notify/maintainability)\n\nLine Notify is a package for Laravel and PHP application to easily send notification to Line messaging application users\nor groups. It builds on top of [Line Notify API](https://notify-bot.line.me/doc/en/), that provides a fluent interface\nto send messages, images ,and stickers directly to Line service from Laravel and PHP.\n\n# \u003ca id=\"installing-line-notify\"\u003e\u003c/a\u003e Installing Line Notify\n\nYou need to use Composer to install Line-Notify into your project:\n\n```\ncomposer require phattarachai/line-notify\n```\n\n## Laravel Usage\n\nAdd a `LINE_ACCESS_TOKEN`  variable to your `.env`. You can get an access token for your application\nfrom [Line Notify API](https://notify-bot.line.me/my/)\n\n```env\n// .env\nLINE_ACCESS_TOKEN=#Token Go here#\n```\n\nSend a message via Line Notify.\n\n```php\nuse Phattarachai\\LineNotify\\Facade\\Line;\n\nLine::send('message');\n```\n\nYou can use setToken() to specify other ACCESS_TOKEN you want to use beside from the .env.\n\n```php\nuse Phattarachai\\LineNotify\\Facade\\Line;\n\nLine::setToken(/*...access token */)\n    -\u003esend('message');\n```\n\nSend a message with an image.\n\n```php\nLine::imageUrl('https://lorempixel.com/1024/1024/')\n    -\u003esend('message');\n```\n\nYou can also specify a thumbnail for your image\n\n```php\nLine::thumbnailUrl('https://lorempixel.com/240/240/')\n    -\u003eimageUrl('https://lorempixel.com/1024/1024/')\n    -\u003esend('message');\n```\n\nYou can upload an image from your local path\n\n```php\nLine::imagePath('/path/to/your/image.png')\n    -\u003esend('message');\n```\n\nYou can combine image uploading and image url together. The uploaded image will take precedence to image url.\n\n```php\nLine::thumbnailUrl('https://lorempixel.com/240/240/')\n    -\u003eimageUrl('https://lorempixel.com/1024/1024/')\n    -\u003eimagePath('/path/to/your/image.png')\n    -\u003esend('message');\n```\n\nSend a message with sticker. You can find a list of Sticker Package ID and Sticker ID\nhere https://devdocs.line.me/files/sticker_list.pdf\n\n```php\nLine::sticker(1, 138)\n    -\u003esend('message');\n```\n\nNotice that Line require to have a message for each and every request whether you send an image or sticker you still\nrequired to provide a message for the API.\n\n### \u003ca name=\"config-publish\"\u003e\u003c/a\u003e Publishing the configuration file\n\nAlternatively to adding a variable into your `.env`, you can publish `config/line-notify.php` file and add your token\nthere.\n\nRun the following Artisan command in your terminal:\n\n```\nphp artisan vendor:publish --provider=\"Phattarachai\\LineNotify\\LineNotifyServiceProvider\"\n```\n\nYou can set the token in this file.\n\n```php\n// File: /config/line-notify.php\nreturn [\n    'access_token' =\u003e env('LINE_ACCESS_TOKEN'),\n];\n```\n\n## Configuring (Laravel)\n\n### \u003ca name=\"config-auto-discovery\"\u003e\u003c/a\u003e Laravel 5.5 and newer\n\nLine Notify wil register itself using\nLaravel's [Auto Discovery](https://laravel.com/docs/5.5/packages#package-discovery).\n\n### \u003ca name=\"config-service-loader\"\u003e\u003c/a\u003e Laravel 5.4 and older\n\nYou'll have to include `LineNotifyServiceProvider` in your `config/app.php`:\n\n```php\n'providers' =\u003e [\n    /*\n     * Package Service Providers...\n     */\n    Phattarachai\\LineNotify\\LineNotifyServiceProvider::class,\n]\n```\n\n## PHP Usage (outside Laravel)\n\n```php\nuse Phattarachai\\LineNotify\\Line;\n\n$line = new Line('YOUR-API-TOKEN-HERE');\n$line-\u003esend('message');\n```\n\n## Screenshot\n\n\u003cimg src=\"/art/screenshot.jpg\" alt=\"Screenshot\" width=\"30%\"\u003e\n\n\n## สนับสนุนผู้พัฒนา\n\n🙋‍♂️ สวัสดีครับ ผมอ๊อฟนะครับ เป็น Full Stack Web Developer มีสร้าง package ขึ้นมาใช้งานในโปรเจคตัวเองที่ใช้งานบ่อย ๆ\nถ้ามีข้อเสนอแนะอยากให้ทำ package อะไรบน PHP / Laravel / NodeJS / Python หรือภาษาอื่น ๆ ทักทายมาได้เลยครับ\n\nline:\n[phat-chai](https://line.me/ti/p/~phat-chai)\n\n💻 รับงาน Freelance หากมีโปรเจคที่น่าสนใจ หาทีมงานร่วมงาน หาโปรแกรมเมอร์ที่มีประสบการณ์ช่วยแก้โจทย์ที่ท้าทาย\nติดต่อมาได้เลยครับ ยินดีให้ความช่วยเหลือและรอสร้างผลงานที่ดีร่วมกันครับ\n\n📄 เข้ามาดูประวัติและผลงานได้ที่ https://phattarachai.dev\n\n\u003ca href=\"https://phattarachai.dev\"\u003e\n    \u003cimg src=\"/art/phattarachai.dev.png\" alt=\"https://phattarachai.dev\" width=\"419px\" /\u003e\n\u003c/a\u003e\n\n## License\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphattarachai%2Fline-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphattarachai%2Fline-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphattarachai%2Fline-notify/lists"}