sebastianpozoga / webecho-php
PHP client for webecho-service. Make possible use sockets by php. Create api to realtime communication.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sebastianpozoga/webecho-php
Requires
- php: >=5.4
This package is not auto-updated.
Last update: 2025-10-15 16:12:20 UTC
README
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.
#install add to your composer.json
{
//...
"require": {
"sebastianpozoga/webecho-php": "dev-master@dev"
},
//...
}
and install by composer install or update
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();