{"id":21499851,"url":"https://github.com/hexters/esms-notification-channel","last_synced_at":"2025-07-02T12:33:13.575Z","repository":{"id":56984061,"uuid":"194760647","full_name":"hexters/esms-notification-channel","owner":"hexters","description":"Laravel notification channel for https://esms.com.my","archived":false,"fork":false,"pushed_at":"2019-09-15T07:59:13.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-16T14:57:08.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hexters.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-02T00:34:23.000Z","updated_at":"2019-09-15T07:59:15.000Z","dependencies_parsed_at":"2022-08-21T12:50:08.566Z","dependency_job_id":null,"html_url":"https://github.com/hexters/esms-notification-channel","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexters%2Fesms-notification-channel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexters%2Fesms-notification-channel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexters%2Fesms-notification-channel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexters%2Fesms-notification-channel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexters","download_url":"https://codeload.github.com/hexters/esms-notification-channel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244039241,"owners_count":20387835,"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":[],"created_at":"2024-11-23T17:18:43.761Z","updated_at":"2025-03-17T13:13:00.409Z","avatar_url":"https://github.com/hexters.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESMS Notification Channel for Laravel\nHow to use the Esms channel? firs you need to create  account from the https://esms.com.my \n\n\nInstall the package with composer\n```\ncomposer require hexters/esms-notification-channel\n```\n\nopen the .env configuratin, and add the code below\n```\nESMS_USER=\nESMS_PASSWORD=\n```\n\nSet route notification in User class or our custom User class\n```\n. . .\n\nClass User extends Authenticatable  {\n\n. . .\n\npublic function routeNotificationForEsms($notification) {\n  return $this-\u003ephone;\n}\n\n. . .\n```\n\nHow to use? in the notification class please add.\n```\n\u003c?php \n\nnamespace App\\Notifications;\n. . .\n\nuse Hexters\\Esms\\EsmsChannel;\nuse Hexters\\Esms\\EsmsMessage;\n\n. . .\n\nclass InvoicePaid extends Notification {\n\n. . . \n\n/**\n* Get the notification channels.\n*\n* @param  mixed  $notifiable\n* @return array|string\n*/\npublic function via($notifiable) {\n    return ['mail', EsmsChannel::class];\n}\n\n. . .\n\n/**\n* Get the voice representation of the notification.\n*\n* @param  mixed  $notifiable\n* @return EsmsResponse\n*/\npublic function toEsms($notifiable) {\n    return (new EsmsMessage)-\u003econtent('Your SMS message content');\n}\n\n```\n## SMS Manualy\n\nIf you will send SMS manualy, you can try\n```\n. . . \nuse Hexters\\Esms\\SendEsms;\n\n. . . \n\n$sms = new sendEsms;\n$sms-\u003eto(608123481234)-\u003emessage(\"RM0.00 Your OTP number is \" . rand(1111,9999))-\u003esend();\n\n```\n\nHappy codding... ☕☕☕","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexters%2Fesms-notification-channel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexters%2Fesms-notification-channel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexters%2Fesms-notification-channel/lists"}