{"id":34004367,"url":"https://github.com/gdpa/chabok","last_synced_at":"2026-04-07T15:31:31.637Z","repository":{"id":55091293,"uuid":"145205024","full_name":"gdpa/chabok","owner":"gdpa","description":"Chabok Notification Channel for laravel","archived":false,"fork":false,"pushed_at":"2021-01-11T12:19:57.000Z","size":35,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T13:22:01.803Z","etag":null,"topics":["chabok-notification","laravel","push-notification"],"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/gdpa.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-08-18T08:53:35.000Z","updated_at":"2023-02-08T13:33:15.000Z","dependencies_parsed_at":"2022-08-14T11:40:45.134Z","dependency_job_id":null,"html_url":"https://github.com/gdpa/chabok","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/gdpa/chabok","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdpa%2Fchabok","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdpa%2Fchabok/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdpa%2Fchabok/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdpa%2Fchabok/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gdpa","download_url":"https://codeload.github.com/gdpa/chabok/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdpa%2Fchabok/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31518422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["chabok-notification","laravel","push-notification"],"created_at":"2025-12-13T10:04:51.952Z","updated_at":"2026-04-07T15:31:31.555Z","avatar_url":"https://github.com/gdpa.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chabok notifications channel for Laravel 5.3+\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/gdpa/chabok.svg?style=flat-square)](https://packagist.org/packages/gdpa/chabok)\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/gdpa/chabok/master.svg?style=flat-square)](https://travis-ci.org/gdpa/chabok)\n[![StyleCI](https://styleci.io/repos/145205024/shield)](https://github.styleci.io/accounts/145205024)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/gdpa/chabok/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/gdpa/chabok/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/gdpa/chabok/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/gdpa/chabok/?branch=master)\n[![Total Downloads](https://img.shields.io/packagist/dt/gdpa/chabok.svg?style=flat-square)](https://packagist.org/packages/gdpa/chabok)\n\nThis package makes it easy to sent [Chabok](https://chabokpush.com//) Notifications with Laravel 5.3+.\n\n## Contents\n\n- [Installation](#installation)\n    - [Setting up the Chabok service](#setting-up-the-chabok-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\nYou can install the package via composer:\n\n``` bash\ncomposer require gdpa/chabok\n```\n\nInstall for laravel 7:\n``` bash\ncomposer require gdpa/chabok:^3.1\n```\n\nInstall for laravel 6:\n``` bash\ncomposer require gdpa/chabok:^2.0\n```\n\nInstall for laravel \u003c 5.8:\n``` bash\ncomposer require gdpa/chabok:^1.0\n```\n\n### Setting up the Chabok service\n\nAdd your Chabok REST API Key to your `config/services.php`:\n\n```php\n// config/services.php\n...\n'chabok' =\u003e [\n    'app_id' =\u003e env('CHABOK_APP_ID'), \n    'key' =\u003e env('CHABOK_API_KEY'),\n],\n...\n```\nYou can add additional configuration for adding to request from config:\n```php\n// config/services.php\n...\n'chabok' =\u003e [\n    'app_id' =\u003e env('CHABOK_APP_ID'), \n    'key' =\u003e env('CHABOK_API_KEY'),\n    'additional' =\u003e [\n        'timeout' =\u003e 5,\n        'request_timeout' =\u003e 10\n    ]\n],\n...\n```\n**Note: If you want to test chabok set `app_id` to `sandbox`.**\n\n## Usage\n\nNow you can use the channel in your `via()` method inside the notification:\n\n``` php\nuse NotificationChannels\\Chabok\\ChabokChannel;\nuse NotificationChannels\\Chabok\\ChabokMessage;\nuse Illuminate\\Notifications\\Notification;\n\nclass ProjectCreated extends Notification\n{\n    public function via($notifiable)\n    {\n        return [ChabokChannel::class];\n    }\n\n    public function toChabok($notifiable)\n    {\n        return ChabokMessage::create()\n            -\u003econtent(\"This is the Chabok notification description\")\n            -\u003edata(['id' =\u003e 1, 'title' =\u003e 'This is notification data']);\n    }\n}\n```\n\nIn order to let your Notification know which Chabok user you are targeting, add the `routeNotificationForChabok` method to your Notifiable model.\n\nThis method needs to return an uuid containing the your registered token on chabok.\n\n```php\npublic function routeNotificationForChabok()\n{\n    return [\n        'uuid' =\u003e 'user-uuid-which-set-on-chabok-by-client',\n    ];\n}\n```\n\n### Available methods\n\n- `content('')`: Accepts a string value for the Chabok notification content.\n- `trackId('')`: Accepts a string value for the Chabok notification trackId.\n- `inApp()`: Call this if you want to set the Chabok notification inApp to true.\n- `live()`: Call this if you want to set the Chabok notification live to true.\n- `alert(''')`: Call this with no parameters if you want to set the Chabok notification useAsAlert to true. If you provide some string, it will set as alert text.\n- `ttl('')`: Accepts a integer value for the Chabok notification ttl.\n- `data([])`: Accepts a array for the Chabok notification data.\n- `fallback([])`: Accepts a array for the Chabok notification fallback.\n- `clientId('')`: Accepts a string value for the Chabok notification clientId.\n- `notification([])`: Accepts a array for the Chabok notification notification.\n- `idr()`: Call this if you want to set the Chabok notification idr to true.\n- `silent()`: Call this if you want to set the Chabok notification silent to true.\n- `binary('')`: Accepts a string value for the Chabok notification contentBinary.\n- `type('')`: Accepts a string value for the Chabok notification contentType.\n- `id('')`: Accepts a number value for the Chabok notification id.\n\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 morteza.poussaneh@gmail.com instead of using the issue tracker.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Morteza Poussaneh](https://github.com/gdpa)\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%2Fgdpa%2Fchabok","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgdpa%2Fchabok","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgdpa%2Fchabok/lists"}