From 10b0c8ac4ae68e293bb6ed4a659c961ab9dc8b03 Mon Sep 17 00:00:00 2001 From: youssef20000 Date: Tue, 9 Apr 2019 16:37:08 +0200 Subject: [PATCH] add structure files --- composer.json | 44 ++++++++++++++++++++++---------- src/OneSignalServiceProvider.php | 28 ++++++++++++++++++++ 2 files changed, 58 insertions(+), 14 deletions(-) create mode 100644 src/OneSignalServiceProvider.php diff --git a/composer.json b/composer.json index d86ea9a..5622166 100644 --- a/composer.json +++ b/composer.json @@ -1,17 +1,33 @@ { - "name": "youssef20000/onesignal-php", - "description": "A php library to make you integrate onesignal push notification service easily in your php script", - "type": "library", - "license": "MIT", - "authors": [ - { - "name": "Youssef Mahmoud", - "email": "youssef.afify122@gmail.com" - } - ], - "minimum-stability": "dev", - "require": { - "php": "^7.1", - "ext-curl": "^7.1" + "name": "youssef20000/onesignal-php", + "description": "A php library to make you integrate onesignal push notification service easily in your php script", + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "Youssef Mahmoud", + "email": "youssef.afify122@gmail.com" } + ], + "minimum-stability": "dev", + "autoload": { + "psr-4": { + "Youssef\\OneSignal\\": "src/" + } + }, + "require": { + "php": "^7.1", + "ext-curl": "^7.1", + "guzzlehttp/guzzle": "^6.2" + }, + "extra": { + "laravel": { + "providers": [ + "Youssef\\OneSignal\\OneSignalServiceProvider" + ], + "aliases": { + "OneSignal": "Youssef\\OneSignal\\OneSignalFacade" + } + } + } } diff --git a/src/OneSignalServiceProvider.php b/src/OneSignalServiceProvider.php new file mode 100644 index 0000000..6407223 --- /dev/null +++ b/src/OneSignalServiceProvider.php @@ -0,0 +1,28 @@ +