{"id":28291906,"url":"https://github.com/yieldstudio/laravel-expo-notifier","last_synced_at":"2025-10-04T13:51:12.258Z","repository":{"id":63408682,"uuid":"566704211","full_name":"YieldStudio/laravel-expo-notifier","owner":"YieldStudio","description":"Easily manage Expo notifications with Laravel. Support batched notifications.","archived":false,"fork":false,"pushed_at":"2025-04-09T14:54:54.000Z","size":152,"stargazers_count":52,"open_issues_count":15,"forks_count":21,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-05T20:03:30.981Z","etag":null,"topics":["batch","expo","laravel","notifier","push-notifications","queue"],"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/YieldStudio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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":"2022-11-16T08:40:03.000Z","updated_at":"2025-05-08T03:12:21.000Z","dependencies_parsed_at":"2024-02-15T15:52:47.100Z","dependency_job_id":"08872899-4160-43a6-b3e4-afaf609c972c","html_url":"https://github.com/YieldStudio/laravel-expo-notifier","commit_stats":{"total_commits":59,"total_committers":9,"mean_commits":6.555555555555555,"dds":0.7627118644067796,"last_synced_commit":"90ed801581336369d86c50da9142d04d44d05a12"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/YieldStudio/laravel-expo-notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YieldStudio%2Flaravel-expo-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YieldStudio%2Flaravel-expo-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YieldStudio%2Flaravel-expo-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YieldStudio%2Flaravel-expo-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YieldStudio","download_url":"https://codeload.github.com/YieldStudio/laravel-expo-notifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YieldStudio%2Flaravel-expo-notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278322147,"owners_count":25967873,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["batch","expo","laravel","notifier","push-notifications","queue"],"created_at":"2025-05-22T04:12:17.849Z","updated_at":"2025-10-04T13:51:12.253Z","avatar_url":"https://github.com/YieldStudio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-expo-notifier\n\nEasily manage Expo notifications with Laravel. Support batched notifications.\n\n[![Latest Version](https://img.shields.io/github/release/yieldstudio/laravel-expo-notifier?style=flat-square)](https://github.com/yieldstudio/laravel-expo-notifier/releases)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/yieldstudio/laravel-expo-notifier/tests.yml?branch=main\u0026style=flat-square)](https://github.com/yieldstudio/laravel-expo-notifier/actions/workflows/tests.yml)\n[![Total Downloads](https://img.shields.io/packagist/dt/yieldstudio/laravel-expo-notifier?style=flat-square)](https://packagist.org/packages/yieldstudio/laravel-expo-notifier)\n\n\u003e Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable.\n\n## Installation\n\n\tcomposer require yieldstudio/laravel-expo-notifier\n\n## Configure\n\nYou must publish the configuration file with:\n\n```shell\nphp artisan vendor:publish --provider=\"YieldStudio\\LaravelExpoNotifier\\ExpoNotificationsServiceProvider\" --tag=\"expo-notifications-config\" --tag=\"expo-notifications-migration\"\n```\n\n### Available environment variables\n- `EXPO_PUSH_NOTIFICATIONS_PER_REQUEST_LIMIT` : sets the max notifications sent on a bulk request. [The official documentation says the limit should be 100](https://docs.expo.dev/push-notifications/sending-notifications/#request-errors) but in fact it's failing. You can tweak it by setting a value under 100.\n- `EXPO_NOTIFICATIONS_ACCESS_TOKEN` : sets the Expo access token used to send notifications with an [additional layer of security](https://docs.expo.dev/push-notifications/sending-notifications/#additional-security). You can get your access token from [your Expo dashboard](https://expo.dev/accounts/[account]/settings/access-tokens).\n\n## Usage\n\n### Send notification\n\n```php\n\u003c?php\n\nnamespace App\\Notifications;\n\nuse Illuminate\\Notifications\\Notification;\nuse YieldStudio\\LaravelExpoNotifier\\ExpoNotificationsChannel;\nuse YieldStudio\\LaravelExpoNotifier\\Dto\\ExpoMessage;\n\nclass NewSampleNotification extends Notification\n{\n    public function via($notifiable): array\n    {\n        return [ExpoNotificationsChannel::class];\n    }\n\n    public function toExpoNotification($notifiable): ExpoMessage\n    {\n        return (new ExpoMessage())\n            -\u003eto([$notifiable-\u003eexpoTokens-\u003evalue])\n            -\u003etitle('A beautiful title')\n            -\u003ebody('This is a content')\n            -\u003echannelId('default');\n    }\n}\n```\n\n### Commands usage\n\nSend database pending notifications\n```\nphp artisan expo:notifications:send\n```\n\nClean tickets from outdated tokens\n```\nphp artisan expo:tickets:check\n```\n\nYou may create schedules to execute these commands.\n\n### Batch support\n\nYou can send notification in the next batch : \n```php\n(new ExpoMessage())\n    -\u003eto([$notifiable-\u003eexpoTokens-\u003evalue])\n    -\u003etitle('A beautiful title')\n    -\u003ebody('This is a content')\n    -\u003echannelId('default')\n    -\u003eshouldBatch();\n```\n\nDon't forget to schedule the `expo:notifications:send` command.\n\n## Unit tests\n\nTo run the tests, just run `composer install` and `composer test`.\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://raw.githubusercontent.com/YieldStudio/.github/main/CONTRIBUTING.md) for details.\n\n### Security\n\nIf you've found a bug regarding security please mail [contact@yieldstudio.fr](mailto:contact@yieldstudio.fr) instead of using the issue tracker.\n\n## Credits\n\n- [David Tang](https://github.com/dtangdev)\n- [James Hemery](https://github.com/jameshemery)\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%2Fyieldstudio%2Flaravel-expo-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyieldstudio%2Flaravel-expo-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyieldstudio%2Flaravel-expo-notifier/lists"}