{"id":16441421,"url":"https://github.com/comento/laravel-sens-alimtalk","last_synced_at":"2025-03-16T17:36:27.681Z","repository":{"id":45695701,"uuid":"271467041","full_name":"comento/laravel-sens-alimtalk","owner":"comento","description":"Send notifications using Ncloud SENS Alimtalk with Laravel","archived":false,"fork":false,"pushed_at":"2024-05-09T00:47:08.000Z","size":29,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-13T10:12:41.629Z","etag":null,"topics":["alimtalk","laravel","ncloud","notification","php","sens"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/comento.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-11T06:15:47.000Z","updated_at":"2024-05-09T00:46:04.000Z","dependencies_parsed_at":"2024-05-09T01:45:14.553Z","dependency_job_id":null,"html_url":"https://github.com/comento/laravel-sens-alimtalk","commit_stats":{"total_commits":22,"total_committers":5,"mean_commits":4.4,"dds":0.5454545454545454,"last_synced_commit":"0586b2a6fa0416817fd6c261a58ece8e6bd8a66e"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comento%2Flaravel-sens-alimtalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comento%2Flaravel-sens-alimtalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comento%2Flaravel-sens-alimtalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comento%2Flaravel-sens-alimtalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comento","download_url":"https://codeload.github.com/comento/laravel-sens-alimtalk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219861896,"owners_count":16555980,"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","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":["alimtalk","laravel","ncloud","notification","php","sens"],"created_at":"2024-10-11T09:14:30.925Z","updated_at":"2024-10-11T09:14:31.484Z","avatar_url":"https://github.com/comento.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ncloud SENS Alimtalk notifications channel for Laravel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/comento/laravel-sens-alimtalk?style=flat-square)](https://packagist.org/packages/comento/laravel-sens-alimtalk)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://travis-ci.org/comento/laravel-sens-alimtalk.svg?branch=master)](https://travis-ci.org/comento/laravel-sens-alimtalk)\n[![Total Downloads](https://img.shields.io/packagist/dt/comento/laravel-sens-alimtalk.svg?style=flat-square)](https://packagist.org/packages/comento/laravel-sens-alimtalk)\n\nThis package makes it easy to send notifications using [Ncloud SENS Alimtalk](https://docs.ncloud.com/ko/sens/sens-1-5.html) with Laravel\n\n## Contents\n\n- [Installation](#installation)\n    - [Setting up the Smsapi service](#setting-up-the-smsapi-service)\n- [Usage](#usage)\n    - [Available Message methods](#available-message-methods)\n- [Changelog](#changelog)\n- [Testing](#testing)\n- [Security](#security)\n- [Contributing](#contributing)\n- [License](#license)\n\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require comento/laravel-sens-alimtalk\n```\n\nYou can also publish the config file with:\n\n```bash\nphp artisan vendor:publish --provider=\"Comento\\SensAlimtalk\\SensAlimtalkServiceProvider\"\n```\n\n### Setting up the Ncloud SENS Alimtalk service\n\nSet your key and defaults in `config/sens-alimtalk.php`:\n\n```php\n/*\n|--------------------------------------------------------------------------\n| NAVER CLOUD PLATFORM API\n|--------------------------------------------------------------------------\n|\n| Go to My Page \u003e Manage Accoutn \u003e Manage Auth Key\n| You can use a previously created authentication key or create a new api authentication key.\n|\n*/\n'access_key' =\u003e env('NCLOUD_ACCESS_KEY', ''),\n'secret_key' =\u003e env('NCLOUD_SECRET_KEY', ''),\n\n/*\n * Service ID issued when you add a project\n */\n'service_id' =\u003e '',\n\n/*\n * KakaoTalk Channel ID ((Old) Plus Friend ID)\n */\n'plus_friend_id' =\u003e '',\n\n/*\n * SMS Failover use status\n */\n'use_sms_failover' =\u003e true,\n```\n\n## Usage\n\nYou can use this channel in your `via()` method:\n\n```php\n// ...\nuse Comento\\SensAlimtalk\\SensAlimtalkChannel;\nuse Comento\\SensAlimtalk\\SensAlimtalkMessage;\n\nclass MentoringAdopt extends Notification\n{\n    use Queueable;\n\n    private $mobiles;\n    private $weblink_url;\n\n    public function __construct($mobiles, $weblink_url)\n    {\n        $this-\u003emobiles = $mobiles;\n        $this-\u003eweblink_url = $weblink_url;\n    }\n\n    public function via($notifiable)\n    {\n        return [SensAlimtalkChannel::class];\n    }\n\n    public function toSensAlimtalk($notifiable)\n    {\n        return (new SensAlimtalkMessage())\n            -\u003etemplateCode('adopt')\n            -\u003eto($this-\u003emobiles)\n            -\u003econtent('축하합니다!\n현직자님의 답변이 채택되었습니다!\n어떤 답변인지 확인하러 가볼까요?')\n            -\u003ebutton(['type' =\u003e 'WL', 'name' =\u003e '지금 보러가기', 'linkMobile' =\u003e $this-\u003eweblink_url, 'linkPc' =\u003e $this-\u003eweblink_url])\n            -\u003eutmSource('utm_source=crm-kakao\u0026utm_medium=alimtalk\u0026utm_campaign=mentoring-adopt\u0026utm_term=지금 보러가기\u0026utm_content=');\n    }\n}\n```\n\n### Available Message methods\n\n* `templateCode(string)`\n* `to(string|array)`\n* `content(string)`\n* `button(array)`\n* `useSmsFailover(boolean)`\n* `reserveTime(string)`\n* `reserveAfterMinute(int)`\n* `reserveAfterDay(int)`\n* `countryCode(string)`\n* `variables(array)`\n* `utmSource(string)`\n* `setPlusFriendId(string)`\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Security\n\nIf you discover any security related issues, please email tech@comento.kr instead of using the issue tracker.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomento%2Flaravel-sens-alimtalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomento%2Flaravel-sens-alimtalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomento%2Flaravel-sens-alimtalk/lists"}