https://github.com/beapp/beapp.library.pusher.web
Push library for Symfony project
https://github.com/beapp/beapp.library.pusher.web
Last synced: 9 months ago
JSON representation
Push library for Symfony project
- Host: GitHub
- URL: https://github.com/beapp/beapp.library.pusher.web
- Owner: BeApp
- Created: 2019-06-21T14:10:22.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-23T13:44:06.000Z (almost 4 years ago)
- Last Synced: 2025-07-29T08:41:55.790Z (11 months ago)
- Language: PHP
- Size: 50.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Symfony pusher library
This Symfony library provides easy to use implementation of push sending mechanism.
Push are defined from the `PushTemplate` and are sent by calling the `PushService->sendPush($template)` method.
## Requirements
* `PHP >= 7.1`
* `symfony >= 4.0`
## Installation
```
composer require beapp/pusher-core
```
Then you must choose one client to use with the core library.
Actually, there is only the firebase one, so you must include it :
```
composer require beapp/pusher-client-firebase
```
## Configuration (with Firebase Client)
You will need to some service configuration in order to use the `PushService` :
First, you must provide your api key to the `FirebaseClient` :
```
Beapp\Push\Core\Client\Firebase\FirebaseClient:
arguments:
$apiKey: 'your_awesome_key'
```
And then, you must enable sending push by passing boolean value to `PushService`
and provide some logger by tagging it :
```
Beapp\Push\Core\PushService:
arguments:
$enabled: true
tags:
- { name: monolog.logger }
```
Now you're ready to use it !