Download the PHP package kce/onesignal-laravel without Composer

On this page you can find all versions of the php package kce/onesignal-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package onesignal-laravel

Laravel OneSignal

Build Status

Send push notifications easily with OneSignal

Contents

Installation

In order to add Laravel OneSignal to your project, just add

composer require kce/onesignal-laravel

Composer auto discovery will register the provider. If dont use it add the following lines to "config/app.php"

'providers' => [
        ...
        .
        .
        KCE\OneSignal\OneSignalServiceProvider::class
]
...
.
.,
'aliases' => [
    ...
    ..
    .
    'OneSignalClient' => KCE\OneSignal\Facades\OneSignalClient::class
]

Publish the configuration

php artisan vendor:publish --provider="KCE\OneSignal\OneSignalServiceProvider"

Usage

Configuration

This package requires you to change the fields in the config/onesignal.php file:

Send to ALL

Send notification to all subscribed devices

Send to Country

Send notification to specific country

Send to Location

Send notification to a particular area-wide. Use radius in meters

Send to single user or users.

Send notification to player ids.

or

Send to segment

Send notification to one or more segments

Send to Tags

Send notification filter by tags

Add Data and/or Title To Notifications

Scheduling

You can schedule notification for future date time.

Schedule based on User's Timezone

Notification will deliver at a specific time-of-day in each users own timezone.

addTag / addOrTag

If you use addTag or addTags method it will put AND between tags. If you want to use multiple tags with "OR" connector, you should use addOrTag method.

Send by First / Last Session

Typically filters has 3 parameters (key, relation, value) but some filters like last_session, first session has their own value keys. You can add specific value key as 4th parameter. If you want to send notification by users last or first active time you can use addFilter method by value key.

Multi Language Notifications

Default notification language is English. But if you want you can send notification to each user in their language. Just add an language => message array as message to any of send methods.

MORE OPTIONS

You can use method chaining...

License

Laravel OneSignal is free software distributed under the terms of the MIT license.

Feel free to send pull requests.


All versions of onesignal-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
guzzlehttp/guzzle Version ^6.3@dev
illuminate/support Version 4.*|5.*|6.*|7.*|8.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kce/onesignal-laravel contains the following files

Loading the files please wait ....