PHPackages                             chipolo/laravel-push-notifications - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. chipolo/laravel-push-notifications

Abandoned → [overthink/laravel-push-notifications](/?search=overthink%2Flaravel-push-notifications)Library[Mail &amp; Notifications](/categories/mail)

chipolo/laravel-push-notifications
==================================

Send push notifications to Android and iOS

1.0.4(4y ago)21.9kMITPHP

Since Sep 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/MarkoDevelop/laravel-push-notifications)[ Packagist](https://packagist.org/packages/chipolo/laravel-push-notifications)[ RSS](/packages/chipolo-laravel-push-notifications/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

Send pushes with Laravel
========================

[](#send-pushes-with-laravel)

This is a helper that takes away the pain of setting specific calls for Android and iOS pushes. It works with Laravel 8.0.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require overthink/laravel-push-notifications
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Overthink\Push\PushServiceProvider"
```

This is the contents of the published config file:

```
return [
    'general' => [
        'keep_alive' => true,
    ],
    'ios'     => [
        'certificate-path' => env('PUSH_IOS_AUTH_KEY_PATH'),
        'secret'           => env('PUSH_IOS_SECRET'),
        'team-id'          => env('PUSH_IOS_TEAM_ID'),
    ],
    'android' => [
        'authorization-key'              => env('PUSH_ANDROID_AUTH_KEY'),
        'google_application_credentials' => env('GOOGLE_APPLICATION_CREDENTIALS'),
        'project_id'                     => env('PUSH_ANDROID_PROJECT_ID'),
    ],
];
```

### iOS

[](#ios)

You have to setup certificate from Apple and link its path in `PUSH_IOS_AUTH_KEY_PATH`. You can check the instructions [here](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_certificate-based_connection_to_apns).

For the `PUSH_IOS_SECRET` you can follow this [stack overflow answer](https://stackoverflow.com/a/40301501), you are looking for `kid` value.

`PUSH_IOS_TEAM_ID` can be found in Apple Developer account as a part of mobile developers data.

### Android

[](#android)

`PUSH_ANDROID_AUTH_KEY` is no longer used in this project, and will be removed in the next version.

`GOOGLE_APPLICATION_CREDENTIALS` can be created if you follow instructions [here](https://developers.google.com/workspace/guides/create-credentials).

`PUSH_ANDROID_PROJECT_ID` is a unique identifier for your Firebase project, used in requests to the FCM v1 HTTP endpoint. This value is available in the [Firebase console Settings](https://console.firebase.google.com/project/_/settings/general) pane.

Usage
-----

[](#usage)

We need a device object from where we get all the data that we use for sending a push. In most cases this can be Laravel model.

```
use Overthink\Push\Contracts\DeviceContract;

class Device implements DeviceContract
{
    public function getOperatingSystem(): string
    {
        return 'android'; // or 'ios'
    }

    public function getPushToken(): string
    {
        // Push token should be provided by mobile application
        return '8516cdd38e63170237df6e7eb6f22d875a5e07c10082...';
    }

    public function isDevelopment(): bool
    {
        // With this value you can set development or production api when sending iOS push
        return false;
    }

    public function getTopic(): string
    {
        // Mobile applications unique identifier used when sending iOS push
        return 'com.example.test'
    }

}
```

Here we combine all the parts to send push to either Android or iOS device.

```
$androidExamplePush = [
    'message' => [
        'android' => [
            'priority' => 'normal',
            'data'     => [
                'title'      => 'Example Android title',
                'body'       => 'Example Android body',
                'extra_data' => 'Some extra data that you want to pass to mobile app'
            ],
        ],
    ],
];

$iosExamplePush = [
  'aps' => [
      'sound' => 'short_sound.caf', // sound file needs to present in the app
      'alert' => [
        'title' => 'Example iOS title',
        'body'  => 'Example iOS body'
      ],
  ],
  'extra_data' => 'Some extra data that you want to pass to mobile app'
];

$pushPayload = (new PushPayload())
           ->setAndroidPayload($androidExamplePush)
           ->setIosPayload($iosExamplePush);

// We need collection of objects that implement Overthink\Push\Contracts\DeviceContract
$devices = collect([new Device()]);

$push = (new Overthink\Push\Push())
      ->setPushPayload($pushPayload)
      ->setDevices($devices)
      ->send();
```

Credits
-------

[](#credits)

- [Marko Zagar](https://github.com/MarkoDevelop)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1720d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5889186?v=4)[MarkoDevelop](/maintainers/MarkoDevelop)[@MarkoDevelop](https://github.com/MarkoDevelop)

---

Top Contributors

[![MarkoDevelop](https://avatars.githubusercontent.com/u/5889186?v=4)](https://github.com/MarkoDevelop "MarkoDevelop (15 commits)")

---

Tags

laravelFCMapnsgoogle pushapple push

### Embed Badge

![Health badge](/badges/chipolo-laravel-push-notifications/health.svg)

```
[![Health](https://phpackages.com/badges/chipolo-laravel-push-notifications/health.svg)](https://phpackages.com/packages/chipolo-laravel-push-notifications)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
