PHPackages                             bluecloud/simple-apns - 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. bluecloud/simple-apns

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

bluecloud/simple-apns
=====================

Laravel package for sending notifications to ios devices via Apple Push Notification Service

v0.9.1(6y ago)116ISCPHP

Since May 6Pushed 6y ago2 watchersCompare

[ Source](https://github.com/bluecloudafrica/simple-apns)[ Packagist](https://packagist.org/packages/bluecloud/simple-apns)[ RSS](/packages/bluecloud-simple-apns/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Simple APNS
===========

[](#simple-apns)

Laravel package for sending notifications to ios devices via Apple Push Notification Service

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

[](#installation)

```
composer require bluecloud/simple-apns

```

Publish Config
--------------

[](#publish-config)

Next copy the apns.php configuration to your project. Run the following command to publish the vendor config

```
php artisan vendor:publish --provider="Vendor\Providers\PackageServiceProvider"

```

Set Environment Variables
-------------------------

[](#set-environment-variables)

Add the following lines to your .env file and set the necessary values. If your key file has password set the APNS\_KEY\_SECRET to the password

```
APNS_KEY_ID=SAMPLE_KEY_ID
APNS_TEAM_ID=SAMPLE_TEAM_ID
APNS_APP_BUNDLE_ID=com.example.app
APNS_KEY_SECRET=

```

Add Key File
------------

[](#add-key-file)

Copy your .p8 key file downloaded from apple developer account to the storage/app. Rename it to apns.p8 as indicated below

```
/storage/app/apns.p8

```

Usage
-----

[](#usage)

Token is a unique user device token generated by the iOS device. This should be captured from device and stored in the database through an API call for instance

```
$token = "";

$notifier = new APNSNotifier();

$message = new APNSMessage($token);
$message->setTitle("New Message");
$message->setMessage("This is a sample message");
$message->setContent(true);

$notifier->send($message);

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

2200d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ae7f9eb095fd20322d5d355480326914814d151fbd4955158041b61fe68e73a?d=identicon)[bluecloud](/maintainers/bluecloud)

---

Top Contributors

[![ykalinde](https://avatars.githubusercontent.com/u/13010040?v=4)](https://github.com/ykalinde "ykalinde (5 commits)")

### Embed Badge

![Health badge](/badges/bluecloud-simple-apns/health.svg)

```
[![Health](https://phpackages.com/badges/bluecloud-simple-apns/health.svg)](https://phpackages.com/packages/bluecloud-simple-apns)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/apn

Apple APN Push Notification Channel

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

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)

PHPackages © 2026

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