{"id":18973728,"url":"https://github.com/64robots/laravel-thinq","last_synced_at":"2025-04-19T16:38:39.128Z","repository":{"id":56094852,"uuid":"156282435","full_name":"64robots/laravel-thinq","owner":"64robots","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-12T10:36:35.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T18:56:44.348Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/64robots.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}},"created_at":"2018-11-05T21:01:02.000Z","updated_at":"2021-10-12T10:14:51.000Z","dependencies_parsed_at":"2022-08-15T13:01:07.766Z","dependency_job_id":null,"html_url":"https://github.com/64robots/laravel-thinq","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/64robots%2Flaravel-thinq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64robots%2Flaravel-thinq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64robots%2Flaravel-thinq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64robots%2Flaravel-thinq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/64robots","download_url":"https://codeload.github.com/64robots/laravel-thinq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249739637,"owners_count":21318629,"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-08T15:12:58.267Z","updated_at":"2025-04-19T16:38:39.095Z","avatar_url":"https://github.com/64robots.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaravelThinq\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads][ico-downloads]][link-downloads]\n[![Build Status][ico-travis]][link-travis]\n[![StyleCI][ico-styleci]][link-styleci]\n\nThis is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.\n\n## Installation\n\nVia Composer\n\n``` bash\n$ composer require 64robots/laravelthinq\n```\n\n## Usage\n\n```\nphp artisan vendor:publish --provider=\"R64\\LaravelThinq\\LaravelThinqServiceProvider\"\n\n```\n\nAdd this to `.env`\n\n```\nTHINQ_ACCOUNT_ID=Your thinq account id\nTHINQ_API_KEY=Your thinq api key\n\n```\n\nUse as notification\n\n```php\n\u003c?php\n\nnamespace App\\Notifications;\n\nuse Illuminate\\Bus\\Queueable;\nuse Illuminate\\Notifications\\Notification;\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\nuse Illuminate\\Notifications\\Messages\\MailMessage;\nuse R64\\LaravelThinq\\ThinqChannel;\nuse R64\\LaravelThinq\\ThinqMessage;\n\nclass TestThinq extends Notification\n{\n    use Queueable;\n\n    public $silent = true; //if silent true, the service does not throw error\n\n    /**\n     * Create a new notification instance.\n     *\n     * @return void\n     */\n    public function __construct()\n    {\n        //\n    }\n\n    /**\n     * Get the notification's delivery channels.\n     *\n     * @param  mixed  $notifiable\n     * @return array\n     */\n    public function via($notifiable)\n    {\n        return [ThinqChannel::class];\n    }\n\n    public function toThinq($notifiable)\n    {\n        return new ThinqMessage('Send test sms', '122233333', '133333333');\n    }\n\n}\n\n```\n\nUse standalone \n\n```php\n$message = new ThinqMessage('Send test sms', '122233333', '133333333');\n\nnew Thinq()\n    -\u003esetMessage($message)\n    -\u003esendSms() //throws error\n    -\u003esendSilentSms() //does not throw error\n```\n\n## Change log\n\nPlease see the [changelog](changelog.md) for more information on what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [contributing.md](contributing.md) for details and a todolist.\n\n## Security\n\nIf you discover any security related issues, please email kliment.lambevski@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Kliment Lambevski][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nMIT. Please see the [license file](license.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/r64/laravelthinq.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/r64/laravelthinq.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/r64/laravelthinq/master.svg?style=flat-square\n[ico-styleci]: https://styleci.io/repos/12345678/shield\n\n[link-packagist]: https://packagist.org/packages/r64/laravelthinq\n[link-downloads]: https://packagist.org/packages/r64/laravelthinq\n[link-travis]: https://travis-ci.org/r64/laravelthinq\n[link-styleci]: https://styleci.io/repos/12345678\n[link-author]: https://github.com/r64\n[link-contributors]: ../../contributors]","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F64robots%2Flaravel-thinq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F64robots%2Flaravel-thinq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F64robots%2Flaravel-thinq/lists"}