Skip to content

Commit

Permalink
Merge pull request #42 from kodjunkie/dev
Browse files Browse the repository at this point in the history
Improvements
  • Loading branch information
kodjunkie authored Jul 2, 2022
2 parents d3f0c8c + 95cb31a commit c6d5662
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 138 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ use Kodjunkie\OnesignalPhpSdk\OneSignal;
use Kodjunkie\OnesignalPhpSdk\Exceptions\OneSignalException;

$config = [
// Onesignal API key
'api_key' => '',
// Onesignal Auth key
'auth_key' => '',
// Onesignal App ID (optional)
// this is beneficial if you're working with a single OneSignal app
// so, you could pass "null" to methods that requires it.
'app_id' => '',
];
// Onesignal API key
'api_key' => '',
// Onesignal Auth key
'auth_key' => '',
// Onesignal App ID (optional)
// this is beneficial if you're working with a single OneSignal app
// so, you could pass "null" to methods that requires it.
'app_id' => '',
];

try {
// Initialize the SDK
Expand Down Expand Up @@ -71,15 +71,15 @@ ONESIGNAL_APP_ID=

#### Register the service provider (lumen only)

Add this line below to your `bootstrap/app.php` file
Add this line to your `bootstrap/app.php` file

```php
$app->register(\Kodjunkie\OnesignalPhpSdk\OneSignalServiceProvider::class);
$app->register(Kodjunkie\OnesignalPhpSdk\OneSignalServiceProvider::class);

// Register the facade (optional)
// To use, must have $app->withFacades() enabled
if (!class_exists('OneSignal')) {
class_alias(\Kodjunkie\OnesignalPhpSdk\Facade::class, 'OneSignal');
class_alias(Kodjunkie\OnesignalPhpSdk\Facade::class, 'OneSignal');
}
```

Expand Down
69 changes: 37 additions & 32 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c6d5662

Please sign in to comment.