Download the PHP package weelis/notification without Composer

On this page you can find all versions of the php package weelis/notification. 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 notification

laravel-weelis-notification

Weelis Notification Channel (APN, FCM, ESMS)

Use this package to send push notifications via Laravel to Firebase Cloud Messaging, APN, ESMS. Laravel 5.3+ required.

Install

This package can be installed through Composer.

Once installed, add the service provider:

Publish the config file:

Register device

Using existing controller add this to your route

Using notification database model & report

Using facade

Setting up the FCM service

The following config file will be published in config/notification.php. Add your Firebase API Key here.

Set up .env file

OR

Example Usage

Use Artisan to create a notification:

Return [fcm] in the public function via($notifiable) method of your notification:

Add the method public function toFcm($notifiable) to your notification, and return an instance of FcmMessage:

When sending to specific device, make sure your notifiable entity has routeNotificationForFcm method defined:

When sending to a topic, you may define so within the toFcm method in the notification:

Setting up the APN service

Before using the APN Service, follow the Provisioning and Development guide from Apple

You will need to generate a certificate for you application, before you can use this channel. Configure the path in config/broadcasting.php

Set up .env file

Usage

You can now send messages to APN by creating a ApnMessage:

Return [apn] in the public function via($notifiable) method of your notification:

In your notifiable model, make sure to include a routeNotificationForApn() method, which return one or an array of tokens.

Setting up the ESMS service

Set up .env file

Usage

You can now send messages to Esms:

Return [esms] in the public function via($notifiable) method of your notification:

When sending to specific device, make sure your notifiable entity has routeNotificationForEsms method defined:

Sending user channel

License

This project belong to vias company.


All versions of notification with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.2
illuminate/events Version ^5.1|^5.2|^5.3
illuminate/notifications Version ^5.3
illuminate/support Version ^5.1|^5.2|^5.3
illuminate/queue Version ^5.1|^5.2|^5.3
zendframework/zendservice-apple-apns Version ^1.2
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 weelis/notification contains the following files

Loading the files please wait ....