Skip to content

birkof/onesignal-bundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OneSignal API for Symfony

Symfony integration of the norkunas/onesignal-php-api library

Getting Started

Installing

You just require using composer and you're good to go!

composer require birkof/onesignal-bundle

If you don't use Flex, you need to manually enable bundle in your kernel:

<?php
// app/AppKernel.php
public function registerBundles()
{
    $bundles = [
        // ...
        new Adelplace\OneSignalBundle\OneSignalBundle()
    ];
}

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 information look at the norkunas/onesignal-php-api documentation

Contributing

Feel free to contribute if you have any idea to improve this project.

Testing [broken]

Please make sure you have docker installed on your host. Then just run

./run-test

Authors

  • Alexandre Delplace - Initial work - Adelplace
  • Daniel Stancu - Updates & Maintenance - birkof

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Symfony OneSignal API Bundle

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 92.2%
  • Shell 4.5%
  • Dockerfile 3.3%