PHPackages                             facile-it/crossbar-http-publisher-bundle - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. facile-it/crossbar-http-publisher-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

facile-it/crossbar-http-publisher-bundle
========================================

This bundle allows to submit PubSub events via HTTP/POST requests to a Crossbar HTTP Publisher.

2.1.0(1y ago)1014.6k↑42.9%3[3 issues](https://github.com/facile-it/crossbar-http-publisher-bundle/issues)[2 PRs](https://github.com/facile-it/crossbar-http-publisher-bundle/pulls)Apache-2.0PHPPHP ^7.4 || ^8.0CI failing

Since Oct 5Pushed 1y ago35 watchersCompare

[ Source](https://github.com/facile-it/crossbar-http-publisher-bundle)[ Packagist](https://packagist.org/packages/facile-it/crossbar-http-publisher-bundle)[ RSS](/packages/facile-it-crossbar-http-publisher-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (7)Dependencies (10)Versions (17)Used By (0)

CrossbarHTTPPublisherBundle
===========================

[](#crossbarhttppublisherbundle)

[![Stable release](https://camo.githubusercontent.com/b8e2ce09b7ea8f8325850a7738a7d4afcf5c1293c14300c42ad95a851a0cb3e8/68747470733a2f2f706f7365722e707567782e6f72672f666163696c652d69742f63726f73736261722d687474702d7075626c69736865722d62756e646c652f76657273696f6e2e737667)](https://packagist.org/packages/facile-it/crossbar-http-publisher-bundle)[![Unstable release](https://camo.githubusercontent.com/b713b63cb4a60689bd610537a5a85cf8369c4be7bbae42ed7c6a3cb982604be4/68747470733a2f2f706f7365722e707567782e6f72672f666163696c652d69742f63726f73736261722d687474702d7075626c69736865722d62756e646c652f762f756e737461626c652e737667)](https://packagist.org/packages/facile-it/crossbar-http-publisher-bundle)[![Build status](https://camo.githubusercontent.com/447b89e094a6fb6a3935c5a13ca0517bbe7574a7693a5f9034c24b75601d21e7/68747470733a2f2f7472617669732d63692e6f72672f666163696c652d69742f63726f73736261722d687474702d7075626c69736865722d62756e646c652e737667)](https://travis-ci.org/facile-it/crossbar-http-publisher-bundle)

[![Coverage Status](https://camo.githubusercontent.com/7aa6ab578ed891fb78d4aed099e32e9ab26b817d3bc50c9a2744330ff75e183d/68747470733a2f2f636f6465636f762e696f2f67682f666163696c652d69742f63726f73736261722d687474702d7075626c69736865722d62756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/facile-it/crossbar-http-publisher-bundle)[![Scrutinizer](https://camo.githubusercontent.com/67791f89fbadc6412e3d54b837b4ed5d7020c1b654eceac62412d801b9f24848/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f666163696c652d69742f63726f73736261722d687474702d7075626c69736865722d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/facile-it/crossbar-http-publisher-bundle/?branch=master)[![SL Insight](https://camo.githubusercontent.com/b2794905fb79c3dca749fe499a4422315abb9784ecf60aa133441e92fcd8beab/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38373563343834662d313034632d343636342d623966302d6632383732343932616534322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/875c484f-104c-4664-b9f0-f2872492ae42)

This bundle allows to submit PubSub events via HTTP/POST requests to a [Crossbar HTTP Publisher](http://crossbar.io/docs/HTTP-Bridge-Services-Publisher/), which is a simple, lightweight websocket server implemented in Python.

Features
--------

[](#features)

- Define multiple publishers
- Publishers are automatically registered into Syomfony's service container
- Send [signed requests](http://crossbar.io/docs/HTTP-Bridge-Services-Publisher/#signed-requests) easily
- Skip SSL certificate verification (useful in dev environment)

Requirements
------------

[](#requirements)

- PHP &gt;= 7
- Guzzle 5, 6 or 7 (7 is recommended)
- The following Symfony components (or the full-stack framework), version 4.x, 5.x, or 6.x:
    - symfony/framework-bundle
    - symfony/dependency-injection
    - symfony/config

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

[](#installation)

Require this package with Composer:

```
$ composer require facile-it/crossbar-http-publisher-bundle
```

... and register the bundle in your app (usually in `app/AppKernel.php`)

```
public function registerBundles()
{
    return [
        // ...
        new Facile\CrossbarHTTPPublisherBundle\FacileCrossbarHTTPPublisherBundle(),
    ];
}
```

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

[](#configuration)

You just need to configure the publishers that you need to use; here is an example of the config, with the default values:

```
facile_crossbar_http_publisher:
  connections:
    dummy_publisher_1:
      protocol: https                     #default: http
      host: crossbar.io                   #default: 127.0.0.1
      port: 443                           #default: 8080
      path: publish                       #default: publish, often just empty
      auth_key: this_is_very_key          #default: null
      auth_secret: this_is_very_secret    #default: null
      ssl_ignore: true                    #default: false
  dummy_publisher_2:
      host: crossbar.tu
```

Usage
-----

[](#usage)

Once you've done that, the publishers will be available as Symfony services in your container:

```
$firstPublisher = $container->get('facile.crossbar.publisher.dummy_publisher_1');
$secondPublisher = $container->get('facile.crossbar.publisher.dummy_publisher_2');

$topic = 'com.myapp.topic1';

// using args
$firstPublisher->publish($topic, ['foo',1]);

// using kwargs
$secondPublisher->publish($topic, null, ['key'=>'value']);

// using both and printing Crossbar's response already decoded:
print_r($firstPublisher->publish($topic, ['foo',1], ['key'=>'value']));

// ouptuts:
//
// array(1) {
//   ["id"]=>
//   int(1395572605)
// }
```

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 80.2% 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 ~430 days

Recently: every ~670 days

Total

9

Last Release

479d ago

Major Versions

0.2 → 1.02017-01-23

1.1.0 → 2.0.02024-06-18

PHP version history (4 changes)0.2PHP ^5.4|^7.0

1.0PHP ^5.6|^7.0

1.1.0PHP ^7.0|^8.0

2.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![Jean85](https://avatars.githubusercontent.com/u/6729988?v=4)](https://github.com/Jean85 "Jean85 (77 commits)")[![peelandsee](https://avatars.githubusercontent.com/u/1212677?v=4)](https://github.com/peelandsee "peelandsee (9 commits)")[![ilario-pierbattista](https://avatars.githubusercontent.com/u/987038?v=4)](https://github.com/ilario-pierbattista "ilario-pierbattista (3 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (1 commits)")[![salvatorecordiano](https://avatars.githubusercontent.com/u/2036080?v=4)](https://github.com/salvatorecordiano "salvatorecordiano (1 commits)")

---

Tags

bundlephpsymfonysymfony-bundleclientsymfonyGuzzlewebsocketpublishercrossbar

###  Code Quality

TestsPHPUnit

Static AnalysisRector

### Embed Badge

![Health badge](/badges/facile-it-crossbar-http-publisher-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/facile-it-crossbar-http-publisher-bundle/health.svg)](https://phpackages.com/packages/facile-it-crossbar-http-publisher-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)

PHPackages © 2026

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