adelplace / onesignal-bundle
Symfony integration of the norkunas/onesignal-php-api library
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 20 879
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 4
Open Issues: 0
Requires
- guzzlehttp/guzzle: ^6.0
- norkunas/onesignal-php-api: ^1.2
- php-http/guzzle6-adapter: ^1.0
- symfony/symfony: ~2.7|^3.0|^4.0
Requires (Dev)
- symfony/phpunit-bridge: ^3.3
This package is not auto-updated.
Last update: 2024-03-23 13:24:16 UTC
README
OneSignal API for Symfony
Symfony integration of the norkunas/onesignal-php-api library
Getting Started
Installing
Just require the bundle with composer
composer require adelplace/onesignal-bundle
Then add the following line to your app/AppKernel.php
public function registerBundles() { return [ ... new Adelplace\OneSignalBundle\AdelplaceOneSignalBundle() ]; }
Configuration
Add the following lines to your config.yml
adelplace_one_signal:
application_id: 'my application id'
application_auth_key: 'my application auth key'
user_auth_key: 'my user auth key'
Usage
To use the api service you just need to call 'onesignal.api' in the container
$api = $this->get('onesignal.api'); $api->notifications->getAll(); ...
For more informations look at the norkunas/onesignal-php-api documentation
Contributing
Feel free to contribute if you have any idea to improve this project.
Testing
Please make sure you have docker installed on your host. Then just run
./run-test
Authors
- Alexandre Delplace - Initial work - Adelplace
License
This project is licensed under the MIT License - see the LICENSE.md file for details