2017 © Pedro Peláez
 

library fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

image

fanout/fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

  • Tuesday, May 23, 2017
  • by kon
  • Repository
  • 4 Watchers
  • 0 Stars
  • 25,272 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 10 Versions
  • 6 % Grown

The README.md

php-fanout

Author: Konstantin Bokarius kon@fanout.io, (*1)

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol., (*2)

License

php-fanout is offered under the MIT license. See the LICENSE file., (*3)

Requirements

  • openssl
  • curl
  • pthreads (required for asynchronous publishing)
  • firebase/php-jwt >=1.0.0 (retreived automatically via Composer)
  • fanout/php-pubcontrol >=1.0.6 (retreived automatically via Composer)

Installation

Using Composer: 'composer require fanout/fanout', (*4)

Manual: ensure that php-jwt and php-pubcontrol have been included and require the following files in php-fanout:, (*5)

require 'php-fanout/src/jsonobjectformat.php';
require 'php-fanout/src/fanout.php';

Asynchronous Publishing

In order to make asynchronous publish calls pthreads must be installed. If pthreads is not installed then only synchronous publish calls can be made. To install pthreads recompile PHP with the following flag: '--enable-maintainer-zts', (*6)

Also note that since a callback passed to the publish_async methods is going to be executed in a separate thread, that callback and the class it belongs to are subject to the rules and limitations imposed by the pthreads extension., (*7)

See more information about pthreads here: http://php.net/manual/en/book.pthreads.php, (*8)

Usage

', '');
$fanout->publish('', 'Test publish!');

// Use publish_async for async publishing only if pthreads are installed:
// $fanout->publish_async('', 'Test async publish!', null, null,
//         'callback');
?>

The Versions

23/05 2017

dev-develop

dev-develop https://github.com/fanout/php-fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Konstantin Bokarius

23/05 2017

dev-master

9999999-dev https://github.com/fanout/php-fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Konstantin Bokarius

23/05 2017

2.1.0

2.1.0.0 https://github.com/fanout/php-fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Konstantin Bokarius

21/04 2015

2.0.0

2.0.0.0 https://github.com/fanout/php-fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Konstantin Bokarius

02/04 2015

1.0.7

1.0.7.0 https://github.com/fanout/php-fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Konstantin Bokarius

09/02 2015

1.0.6

1.0.6.0 https://github.com/fanout/php-fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

  Sources   Download

MIT

The Requires

 

by Konstantin Bokarius

01/02 2015

1.0.5

1.0.5.0 https://github.com/fanout/php-fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

  Sources   Download

MIT

The Requires

 

by Konstantin Bokarius

20/01 2015

1.0.4

1.0.4.0 https://github.com/fanout/php-fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

  Sources   Download

MIT

The Requires

 

by Konstantin Bokarius

19/01 2015

1.0.3

1.0.3.0 https://github.com/fanout/php-fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

  Sources   Download

MIT

The Requires

 

by Konstantin Bokarius

17/01 2015

1.0.2

1.0.2.0 https://github.com/fanout/php-fanout

A PHP convenience library for publishing messages to Fanout.io using the EPCP protocol.

  Sources   Download

MIT

The Requires

 

by Konstantin Bokarius