PHPackages                             hoyf/pushwoosh - 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. hoyf/pushwoosh

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

hoyf/pushwoosh
==============

A Pushwoosh bridge for Laravel

5.7(7y ago)0181MITPHPPHP ^5.6.4 || ^7.0

Since Jul 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/AhmedFawzy/Laravel-Pushwoosh)[ Packagist](https://packagist.org/packages/hoyf/pushwoosh)[ RSS](/packages/hoyf-pushwoosh/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (7)Versions (13)Used By (0)

Laravel Pushwoosh
=================

[](#laravel-pushwoosh)

[![pushwoosh](https://cloud.githubusercontent.com/assets/499192/12697005/8eb625dc-c778-11e5-9041-3f4bdee8cb06.png)](https://cloud.githubusercontent.com/assets/499192/12697005/8eb625dc-c778-11e5-9041-3f4bdee8cb06.png)

Laravel [Pushwoosh](https://www.pushwoosh.com) is a [Pushwoosh](https://www.pushwoosh.com) bridge for Laravel using the [Gomoob's](https://github.com/gomoob) [Pushwoosh package](https://github.com/gomoob/php-pushwoosh).

```
// Create a new notification.
$notification = Notification::create()->setContent('Hello Jean !');

// Create a request for the '/createMessage' web service.
$request = CreateMessageRequest::create()->addNotification($notification);

// Send out the notification.
$response = $pushwoosh->createMessage($request);

// Check if it was sent ok.
$response->isOk();
```

[![Build Status](https://camo.githubusercontent.com/6d11c97d6d427aee22e4e908d21e242af98eb85e1f7012765d73d5c8e930bfe9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f686f796d756c74696d656469612f4c61726176656c2d50757368776f6f73682f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/hoymultimedia/Laravel-Pushwoosh)[![StyleCI](https://camo.githubusercontent.com/72f4f0314ce86d9ace41a97d30c2ef3a46bb2247c0ccc0c28d5cfd684850b755/68747470733a2f2f7374796c6563692e696f2f7265706f732f33343834353838312f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/34845881)[![Coverage Status](https://camo.githubusercontent.com/5d374c2dac6474377064fb2759a9282564f5a65f3a4ced5f80ffdc6686a3d5d1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f686f796d756c74696d656469612f4c61726176656c2d50757368776f6f73682e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/hoymultimedia/Laravel-Pushwoosh/code-structure)[![Quality Score](https://camo.githubusercontent.com/6dd5cefac410b7c9db293a86cff237b476b0aa88a7e203ace78e3c568d592084/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f686f796d756c74696d656469612f4c61726176656c2d50757368776f6f73682e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/hoymultimedia/Laravel-Pushwoosh)[![Latest Version](https://camo.githubusercontent.com/ec11b59ee7c13ed82599ab721c30469ef64141237d22be6fbedd26238b5b1973/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f686f796d756c74696d656469612f4c61726176656c2d50757368776f6f73682e7376673f7374796c653d666c6174)](https://github.com/hoymultimedia/Laravel-Pushwoosh/releases)[![License](https://camo.githubusercontent.com/8a73f8bb1de4115c965b7f79e959db2381b318f3741dece4aa2f141e8fe23303/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f686f792f70757368776f6f73682e7376673f7374796c653d666c6174)](https://packagist.org/packages/hoy/pushwoosh)

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

[](#installation)

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```
composer require hoy/pushwoosh
```

Add the service provider to `config/app.php` in the `providers` array.

```
Hoy\Pushwoosh\PushwooshServiceProvider::class
```

If you want you can use the [facade](http://laravel.com/docs/facades). Add the reference in `config/app.php` to your aliases array.

```
'Pushwoosh' => Hoy\Pushwoosh\Facades\Pushwoosh::class
```

Configuration
-------------

[](#configuration)

Laravel Pushwoosh requires connection configuration. To get started, you'll need to publish all vendor assets:

```
php artisan vendor:publish
```

This will create a `config/pushwoosh.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

#### Default Connection Name

[](#default-connection-name)

This option `default` is where you may specify which of the connections below you wish to use as your default connection for all work. Of course, you may use many connections at once using the manager class. The default value for this setting is `main`.

#### Pushwoosh Connections

[](#pushwoosh-connections)

This option `connections` is where each of the connections are setup for your application. Example configuration has been included, but you may add as many connections as you would like.

Usage
-----

[](#usage)

#### PushwooshManager

[](#pushwooshmanager)

This is the class of most interest. It is bound to the ioc container as `pushwoosh` and can be accessed using the `Facades\Pushwoosh` facade. This class implements the ManagerInterface by extending AbstractManager. The interface and abstract class are both part of [Graham Campbell's](https://github.com/GrahamCampbell) [Laravel Manager](https://github.com/GrahamCampbell/Laravel-Manager) package, so you may want to go and checkout the docs for how to use the manager class over at that repository. Note that the connection class returned will always be an instance of `Gomoob\Pushwoosh\Client\Pushwoosh`.

#### Facades\\Pushwoosh

[](#facadespushwoosh)

This facade will dynamically pass static method calls to the `pushwoosh` object in the ioc container which by default is the `PushwooshManager` class.

#### PushwooshServiceProvider

[](#pushwooshserviceprovider)

This class contains no public methods of interest. This class should be added to the providers array in `config/app.php`. This class will setup ioc bindings.

### Examples

[](#examples)

Here you can see an example of just how simple this package is to use. Out of the box, the default adapter is `main`. After you enter your authentication details in the config file, it will just work:

```
// You can alias this in config/app.php.
use Hoy\Pushwoosh\Facades\Pushwoosh;

Pushwoosh::createMessage($request);
// We're done here - how easy was that, it just works!

Pushwoosh::getApplication();
// This example is simple and there are far more methods available.
```

The Pushwoosh manager will behave like it is a `Gomoob\Pushwoosh\Client\Pushwoosh`. If you want to call specific connections, you can do that with the connection method:

```
use Hoy\Pushwoosh\Facades\Pushwoosh;

// Writing this…
Pushwoosh::connection('main')->createMessage($request);

// …is identical to writing this
Pushwoosh::createMessage($request);

// and is also identical to writing this.
Pushwoosh::connection()->createMessage($request);

// This is because the main connection is configured to be the default.
Pushwoosh::getDefaultConnection(); // This will return main.

// We can change the default connection.
Pushwoosh::setDefaultConnection('alternative'); // The default is now alternative.
```

If you prefer to use dependency injection over facades like me, then you can inject the manager:

```
use Hoy\Pushwoosh\PushwooshManager;

class Foo
{
	protected $pushwoosh;

	public function __construct(PushwooshManager $pushwoosh)
	{
		$this->pushwoosh = $pushwoosh;
	}

	public function bar($request)
	{
		$this->pushwoosh->createMessage($request);
	}
}

App::make('Foo')->bar();
```

Documentation
-------------

[](#documentation)

There are other classes in this package that are not documented here. This is because the package is a Laravel wrapper of [Gomoob's](https://github.com/gomoob) [Pushwoosh package](https://github.com/gomoob/php-pushwoosh).

License
-------

[](#license)

Laravel Pushwoosh is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 91% 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 ~108 days

Recently: every ~226 days

Total

12

Last Release

2755d ago

Major Versions

1.2.1 → 2.0.02016-01-28

2.2.0 → 5.62018-05-27

PHP version history (3 changes)1.0.0PHP &gt;=5.5.9

1.2.1PHP ^5.5.9 || ^7.0

2.2.0PHP ^5.6.4 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a61fc16265614856f8973e22064796ab92465cc70985bd4c73c7bba623c2eb1a?d=identicon)[AhmedFawzy](/maintainers/AhmedFawzy)

---

Top Contributors

[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (61 commits)")[![AhmedFawzy](https://avatars.githubusercontent.com/u/171846?v=4)](https://github.com/AhmedFawzy "AhmedFawzy (4 commits)")[![mikefrancis](https://avatars.githubusercontent.com/u/1672610?v=4)](https://github.com/mikefrancis "mikefrancis (1 commits)")[![Pandan](https://avatars.githubusercontent.com/u/1301344?v=4)](https://github.com/Pandan "Pandan (1 commits)")

---

Tags

laravelpushnotificationpushwooshhoy

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hoyf-pushwoosh/health.svg)

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

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

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[hoy/pushwoosh

A Pushwoosh bridge for Laravel

3111.1k](/packages/hoy-pushwoosh)[neo/pusher-beams

Pusher Beams is a push notification service from Pusher.

133.1k](/packages/neo-pusher-beams)

PHPackages © 2026

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