{"id":16462767,"url":"https://github.com/baspa/spryng","last_synced_at":"2025-08-09T02:22:42.276Z","repository":{"id":244445278,"uuid":"814822470","full_name":"Baspa/spryng","owner":"Baspa","description":"📲 Spryng Notifications Channel for Laravel","archived":false,"fork":false,"pushed_at":"2024-06-14T18:22:28.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T06:36:09.272Z","etag":null,"topics":[],"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/Baspa.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":"2024-06-13T19:24:54.000Z","updated_at":"2024-06-14T18:22:31.000Z","dependencies_parsed_at":"2024-06-14T19:25:45.303Z","dependency_job_id":"67635803-d7e5-4c44-8e6b-8f7caa5340c3","html_url":"https://github.com/Baspa/spryng","commit_stats":null,"previous_names":["baspa/spryng"],"tags_count":2,"template":false,"template_full_name":"laravel-notification-channels/skeleton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baspa%2Fspryng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baspa%2Fspryng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baspa%2Fspryng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baspa%2Fspryng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Baspa","download_url":"https://codeload.github.com/Baspa/spryng/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240995365,"owners_count":19890723,"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-10-11T11:12:15.586Z","updated_at":"2025-02-27T08:29:43.874Z","avatar_url":"https://github.com/Baspa.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spryng Notification Channel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/laravel-notification-channels/spryng.svg?style=flat-square)](https://packagist.org/packages/laravel-notification-channels/spryng)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/laravel-notification-channels/spryng/master.svg?style=flat-square)](https://travis-ci.org/laravel-notification-channels/spryng)\n[![StyleCI](https://styleci.io/repos/:style_ci_id/shield)](https://styleci.io/repos/:style_ci_id)\n[![SensioLabsInsight](https://img.shields.io/sensiolabs/i/:sensio_labs_id.svg?style=flat-square)](https://insight.sensiolabs.com/projects/:sensio_labs_id)\n[![Quality Score](https://img.shields.io/scrutinizer/g/laravel-notification-channels/spryng.svg?style=flat-square)](https://scrutinizer-ci.com/g/laravel-notification-channels/spryng)\n[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/laravel-notification-channels/spryng/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/laravel-notification-channels/spryng/?branch=master)\n[![Total Downloads](https://img.shields.io/packagist/dt/laravel-notification-channels/spryng.svg?style=flat-square)](https://packagist.org/packages/laravel-notification-channels/spryng)\n\n📲  [Spryng](https://www.spryng.nl/en/) Notifications Channel for Laravel\n\n## Contents\n\n- [Installation](#installation)\n\t- [Setting up the Spryng service](#setting-up-the-Spryng-service)\n- [Usage](#usage)\n\t- [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\n## Installation\n\n```bash\ncomposer require laravel-notification-channels/spryng\n```\n\nAdd the configuration to your `services.php` config file:\n\n```php\n'spryng' =\u003e [\n    'key' =\u003e env('SPRYNG_API_KEY'),\n]\n```\n\n### Setting up the Spryng service\n\nYou'll need a Spryng account. Head over to their [website](https://www.spryng.nl/en/) and create or login to your account.\n\nHead to your `Profile` and then `Security` in the sidebar to generate a set of API keys.\n\n## Usage\n\nYou can use the channel in your `via()` method inside the notification:\n\n```php\nuse Illuminate\\Notifications\\Notification;\nuse \\NotificationChannels\\Spryng\\SpryngMessage;\nuse \\NotificationChannels\\Spryng\\SpryngChannel;\n\nclass AccountApproved extends Notification\n{\n    public function via($notifiable)\n    {\n        return [SpryngChannel::class];\n    }\n\n    public function toSpryng($notifiable)\n    {\n        return (new SpryngMessage)\n\t\t\t-\u003esetBody(\"Task #{$notifiable-\u003eid} is complete!\")\n\t\t\t-\u003esetRecipients($notifiable-\u003ephone_number)\n\t\t\t-\u003esetOriginator(config('app.name'));\n    }\n}\n```\n\nMake sure your Notifiable model has a `phone_number` attribute, which will be used to send the SMS. Also make sure it's a valid phone number.\n\n### Available Message methods\n\n- `setBody('')`: Accepts a string value for the message body.\n- `setRecipients('')`: Accepts a string or array value for the recipient(s) phone number.\n- `setOriginator('')`: Accepts a string value for the sender name.\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 hello@baspa.dev instead of using the issue tracker.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Bas van Dinther](https://github.com/Baspa)\n- [Spryng](https://www.spryng.nl/en/)\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%2Fbaspa%2Fspryng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaspa%2Fspryng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaspa%2Fspryng/lists"}