{"id":23268553,"url":"https://github.com/dubems/appwebsms","last_synced_at":"2025-04-06T08:42:11.377Z","repository":{"id":56973042,"uuid":"79946533","full_name":"dubems/AppWebSms","owner":"dubems","description":"Laravel Package for sending Notifications using AppWebSms","archived":false,"fork":false,"pushed_at":"2017-11-18T16:47:09.000Z","size":24,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T14:17:54.892Z","etag":null,"topics":["laravel","notifications","php"],"latest_commit_sha":null,"homepage":"https://www.appwebsms.com/","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/dubems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-24T19:34:59.000Z","updated_at":"2019-08-07T09:23:30.000Z","dependencies_parsed_at":"2022-08-21T07:10:28.182Z","dependency_job_id":null,"html_url":"https://github.com/dubems/AppWebSms","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubems%2FAppWebSms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubems%2FAppWebSms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubems%2FAppWebSms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubems%2FAppWebSms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dubems","download_url":"https://codeload.github.com/dubems/AppWebSms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457741,"owners_count":20941906,"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":["laravel","notifications","php"],"created_at":"2024-12-19T17:19:31.654Z","updated_at":"2025-04-06T08:42:11.356Z","avatar_url":"https://github.com/dubems.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AppWebSms notifications channel for Laravel 5.4\n\nThis package makes it easy to send [AppWebSms notifications](https://www.appwebsms.com) with  Laravel 5.4.\n\n## Contents\n\n- [Installation](#installation)\n    - [Setting up your AppWebSms account](#setting-up-your-AppWebSms-account)\n- [Usage](#usage)\n    - [Available Message methods](#available-message-methods)\n- [Changelog](#changelog)\n- [Testing](#testing)\n- [Security](#security)\n- [Contributing](#contributing)\n- [Credits](#credits)\n- [License](#license)\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require dubems/app-web-sms\n```\n\nYou must install the service provider:\n\n```php\n// config/app.php\n'providers' =\u003e [\n    ...\n    AppWebSms\\AppWebSmsServiceProvider::class,\n],\n```\n\n### Setting up your AppWebSms account\n\nAdd your AppWebSms Account Name, Account Password, and Sender (The sender ID to show on receiver's phone) to your `config/services.php`:\n\n```php\n// config/services.php\n...\n'appwebsms' =\u003e [\n    'username' =\u003e 'Your username',\n    'password' =\u003e 'Your password',\n    'sender'   =\u003e 'Dubem'\n],\n...\n```\n\n## Usage\n\nNow you can use the channel in your `via()` method inside the notification:\n\n``` php\nuse AppWebSms\\AppWebSmsChannel;\nuse AppWebSms\\AppWebSmsMessage;\nuse Illuminate\\Notifications\\Notification;\n\nclass ValentineDateApproved extends Notification\n{\n    public function via($notifiable)\n    {\n        return [AppWebSmsChannel::class];\n    }\n\n    public function toAppWebSms($notifiable)\n    {\n        return (new AppWebSmsMessage('Your {$notifiable-\u003eservice} account was approved!'));\n    }\n}\n```\n\nIn order to let your Notification know which phone number you are sending to, add the `routeNotificationForAppWebSms` method to your Notifiable model e.g your User Model\n\n```php\npublic function routeNotificationForAppWebSms()\n{\n    return $this-\u003ephone; // where `phone` is a field in your users table;\n}\n```\n\n### Available Message methods\n\n#### AppWebSmsMessage\n\n- `setMesssage('')`   : Accepts a string value for the notification body.\n- `setSchedule('2017-01-13 10:30:04')`   : Accepts a date-time string for when the notification should be sent.\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n\n## Security\n\nIf you discover any security related issues, please email nriagudubem@gmail.com instead of using the issue tracker.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Nriagu Chidubem](https://github.com/dubems)\n- [All Contributors](../../contributors)\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%2Fdubems%2Fappwebsms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdubems%2Fappwebsms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubems%2Fappwebsms/lists"}