PHPackages                             kingscode/laravel-apns-notification-channel - 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. kingscode/laravel-apns-notification-channel

Abandoned → [laravel-notification-channels/apn](/?search=laravel-notification-channels%2Fapn)ArchivedLibrary[Mail &amp; Notifications](/categories/mail)

kingscode/laravel-apns-notification-channel
===========================================

Apple push notification service (Laravel notification channel).

0.4.1(6y ago)14.1kApache-2.0PHPPHP ^7.2

Since Nov 7Pushed 5y ago2 watchersCompare

[ Source](https://github.com/kingscode/laravel-apns-notification-channel)[ Packagist](https://packagist.org/packages/kingscode/laravel-apns-notification-channel)[ RSS](/packages/kingscode-laravel-apns-notification-channel/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (11)Used By (0)

Notice
======

[](#notice)

⚠️ Abandoned ⚠️

This package was written at a time where the offical [Laravel Notification Channels](https://github.com/laravel-notification-channels) didn't support the "new" APNs API.

This package is hereby no longer maintained and you should seriously consider upgrading to [laravel-notification-channels/apn](https://github.com/laravel-notification-channels/apn)

Laravel APNS Notification Channel
=================================

[](#laravel-apns-notification-channel)

[![Packagist](https://camo.githubusercontent.com/31f6bf442e1eed90efaaf8208a9652e6c191f0579ac5fb37959861738ae545ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b696e6773636f64652f6c61726176656c2d61706e732d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f636f6c6f72423d627269676874677265656e)](https://packagist.org/packages/kingscode/laravel-apns-notification-channel)[![license](https://camo.githubusercontent.com/f99587f4d2cb400f2bef6d1259dfc96a120d7fae67db88d92672e772e7c2c38f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b696e6773636f64652f6c61726176656c2d61706e732d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f636f6c6f72423d627269676874677265656e)](https://github.com/kingscode/laravel-apns-notification-channel)[![Packagist](https://camo.githubusercontent.com/82e232342fb0d1e85c18378eb0025cc40e046ede12a9a05258404f0d4bfffc25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b696e6773636f64652f6c61726176656c2d61706e732d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f636f6c6f72423d627269676874677265656e)](https://packagist.org/packages/kingscode/laravel-apns-notification-channel)

Apple push notification service (Laravel notification channel).

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

[](#installation)

Require the package.

```
composer require kingscode/laravel-apns-notification-channel
```

You will need to get a `p8` certificate for you application from `apple`, before you can use this channel. Configure the path in `config/broadcasting.php`.

```
'connections' => [
    'apn' => [
        'key_id'               => env('APN_KEY_ID'),
        'team_id'              => env('APN_TEAM_ID'),
        'app_bundle'           => env('APN_APP_BUNDLE'),
        'private_key'          => storage_path('apn.p8'),
        'private_key_password' => env('APN_KEY_PASSWORD', null),
        'is_production'        => env('APN_PRODUCTION', false),
    ],
];
```

Usage
-----

[](#usage)

In your `notifiable` model, make sure to include a `routeNotificationForApn()` method which may return a single token or an array of tokens.

```
public function routeNotificationForApn(): string
{
    return $this->apn_token;
}
```

And in your `Notification` add a `toApn` method that returns a `Message`.

```
/**
 * Get the notification in APN format.
 *
 * @param $notifiable
 * @return \KingsCode\LaravelApnsNotificationChannel\Message
 */
public function toApn($notifiable): Message
{
    return (new Message())
        ->setTitle('title')
        ->setBody('body');
}
```

And make sure your `via` method returns the `ApnChannel`.

```
public function via($notifiable): array
{
    return [ApnChannel::class];
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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 ~53 days

Recently: every ~110 days

Total

10

Last Release

2260d ago

PHP version history (2 changes)0.1PHP ^7.1.3

v0.4.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3198b2298a5f376feaeaf29c62f1992a6c9b26f8dba88f7521abaa1f4096561b?d=identicon)[kingscode](/maintainers/kingscode)

---

Top Contributors

[![koenhoeijmakers](https://avatars.githubusercontent.com/u/2232776?v=4)](https://github.com/koenhoeijmakers "koenhoeijmakers (34 commits)")

---

Tags

apnslaravelnotification-channel

### Embed Badge

![Health badge](/badges/kingscode-laravel-apns-notification-channel/health.svg)

```
[![Health](https://phpackages.com/badges/kingscode-laravel-apns-notification-channel/health.svg)](https://phpackages.com/packages/kingscode-laravel-apns-notification-channel)
```

###  Alternatives

[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/webpush

Web Push Notifications driver for Laravel.

7984.5M16](/packages/laravel-notification-channels-webpush)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)

PHPackages © 2026

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