2017 © Pedro Peláez
 

library webecho-php

PHP client for webecho-service. Make possible use sockets by php. Create api to realtime communication.

image

sebastianpozoga/webecho-php

PHP client for webecho-service. Make possible use sockets by php. Create api to realtime communication.

  • Tuesday, December 29, 2015
  • by SebastianPozoga
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Webecho-PHP

PHP client for webecho-service. Make possible use sockets by php. Create api to realtime communication. Use https://github.com/SebastianPozoga/webecho-service to serve data., (*1)

install

add to your composer.json, (*2)

{
  //...

  "require": {
    "sebastianpozoga/webecho-php": "dev-master@dev"
  },

  //...
}

and install by composer install or update, (*3)

composer install

Example

Init

namespace Webecho;

$config = WebechoConfig([
  'host' => 'http://loclahost:8191/'
  'token' => 'your app token'
]);

$webeacho = new Webecho($config);

Send

$echo = $webeacho->echo();
$echo->setAction('action_name');
$echo->setData(array(
  'message' => 'example message',
  'other_data' => 'other data for action...',
));
$echo->send();

Example project (Symfony2)

https://github.com/SebastianPozoga/webecho-php-example, (*4)

The Versions

29/12 2015

dev-master

9999999-dev https://github.com/SebastianPozoga/webecho-php

PHP client for webecho-service. Make possible use sockets by php. Create api to realtime communication.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Sebastian Pożoga

php socket webecho