PHPackages                             mapalagama/uaship - 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. [API Development](/categories/api)
4. /
5. mapalagama/uaship

ActiveLibrary[API Development](/categories/api)

mapalagama/uaship
=================

Urban Airship Lib for Laravel

0.6(9y ago)1694MITPHPPHP &gt;=5.6

Since Jul 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Mapalagama/UAShip)[ Packagist](https://packagist.org/packages/mapalagama/uaship)[ RSS](/packages/mapalagama-uaship/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

UAShip
======

[](#uaship)

[![Build Status](https://camo.githubusercontent.com/5743a0c8c686dbe22b7a477d83ce58d59ff301c1dbca1d83201c8b67bff2b757/68747470733a2f2f696d672e736869656c64732e696f2f776572636b65722f63692f776572636b65722f646f63732e737667)](https://camo.githubusercontent.com/5743a0c8c686dbe22b7a477d83ce58d59ff301c1dbca1d83201c8b67bff2b757/68747470733a2f2f696d672e736869656c64732e696f2f776572636b65722f63692f776572636b65722f646f63732e737667)

Urban Airship library for Laravel 5. [UAShip](https://packagist.org/packages/mapalagama/uaship)

Usage
-----

[](#usage)

##### Requirements

[](#requirements)

- Composer
- PHP &gt;= 5.6

##### Install

[](#install)

```
composer require mapalagama/uaship

```

##### Import

[](#import)

```
use Mapalagama\UAShip\UAShip
```

#### Initilization

[](#initilization)

Initialize **UAShip** class with your *App Key* and *App Master Secret*

```
$uaShip = new UAShip("**app_key_here**", "**app_master_secret**");
```

#### Alert

[](#alert)

Add alert using **addAlert** method in **UAShip** class

```
$uaShip->addAlert("This is alert");
```

#### Channels

[](#channels)

Add channels using **addChannel** method. parameters,

1. Channel Type
    - `UAShip::IOS` for IOS Channels
    - `UAShip::ANDROID` for Android channels
2. Channel id

```
$uaShip->addChannel(UAShip::IOS, "**Channel_id_here**");
$uaShip->addChannel(UAShip::ANDROID, "**Channel_id_here**");
```

#### Extra

[](#extra)

Add extra data using **addExtra** method. parameters,

1. Extra - *Generic class or stdClass required. This parameter will encode to a json before sending*

```
$extra = new stdClass();
$extra->question = "what is your name ?";

$uaShip->addExtra($e);
```

#### Send Message

[](#send-message)

Send notification using **send** method.

```
$result = $uaShip->send();
```

**SUCCESS MESSAGE `$result`**

```
{
  "ok": true,
  "operation_id": "**operation_id**",
  "push_ids": [
    "**push_id**"
  ],
  "message_ids": [],
  "content_urls": []
}
```

**ERROR MESSAGE `$result`**

*error* field contains the reason

```
{
  "ok": false,
  "error": "Unauthorized",
  "error_code": 40101
}
```

Full code
---------

[](#full-code)

```
   //initialization
    $uaShip = new UAShip("**APP_KEY**", "**APP_MASTER_SECRET**");

    //add alert message
    $uaShip->addAlert("This is alert");

    //add channels
    $uaShip->addChannel(UAShip::IOS, "**CHANNEL_ID**");
    $uaShip->addChannel(UAShip::ANDROID, "**CHANNEL_ID**");

    //add extra
    $extra = new stdClass();
    $extra->question = "what is your name ?";
    $uaShip->addExtra($extra);

    //send
    echo $uaShip->send();

```

Whats's in Next Version
-----------------------

[](#whatss-in-next-version)

- push using device token
- push using tags and device types
- scheduling
- more...

License
-------

[](#license)

UAShip is released under the [MIT License](LICENSE).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~67 days

Recently: every ~84 days

Total

6

Last Release

3310d ago

PHP version history (2 changes)v0.1PHP ^5.6

0.6PHP &gt;=5.6

### Community

Maintainers

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

---

Top Contributors

[![ImHmg](https://avatars.githubusercontent.com/u/6729722?v=4)](https://github.com/ImHmg "ImHmg (8 commits)")[![Mapalagama](https://avatars.githubusercontent.com/u/92432576?v=4)](https://github.com/Mapalagama "Mapalagama (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mapalagama-uaship/health.svg)

```
[![Health](https://phpackages.com/badges/mapalagama-uaship/health.svg)](https://phpackages.com/packages/mapalagama-uaship)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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