{"repo":"berkayk/laravel-onesignal","free":true,"listed":false,"github":"https://github.com/berkayk/laravel-onesignal","clone":"git clone https://github.com/berkayk/laravel-onesignal.git","description":"OneSignal Push Notifications for Laravel","language":"PHP","stars":523,"topics":["notifications","laravel","onesignal","onesignal-notifications","php"],"license":null,"category":"cli-tools","readme_excerpt":"OneSignal Push Notifications for Laravel Introduction This is a simple OneSignal wrapper library for Laravel. It simplifies the basic notification flow with the defined methods. You can send a message to all users or you can notify a single user. Before you start installing this service, please complete your OneSignal setup at https://onesignal.com and finish all the steps that is necessary to obtain an application id and REST API Keys. Installation First, you'll need to require the package with Composer: Afterwards, run composer update from your command line. You only need to do the following if your Laravel version is below 5.5 : Then, update config/app.php by adding an entry for the service provider. Then, register class alias by adding an entry in aliases section Finally, from the command line again, run to publish the default configuration file. This will publish a configuration file named onesignal.php which includes your OneSignal authorization keys. Note: If the previous command does not publish the config file successfully, please check the steps involving providers and aliases in the config/app.php file. Configuration You need to fill in your OneSignal REST API URL App ID and REST API Key inside your .env file like this: You can control timeout of the Guzzle client used by OneSignalClient by adding following into your .env file This param is useful when you are planning to send push notification via Laravel queues Usage Sending a Notification To All Users You can ea","default_branch":null,"files":null,"tree":[],"storefront":"/r/berkayk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/berkayk/laravel-onesignal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}