PHP Node.js Communication IPC Client: Send messages to a Node server via sockets

Recommend this page to a friend!
  Info   View files Example   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 94 All time: 9,459 This week: 298Up
Version License PHP version Categories
php-node-ipc-client 1.0.0GNU General Publi...5Networking, PHP 5
Description Author

This package can send messages to a Node server via sockets.

It can connect to a Node.js IPC server passing the local path of a Unix socket.

The package can also send messages to the Node.js server passing a string with the message as parameter.

The package also include the source of an example to start the server using the Node.js IPC server client.

Innovation Award
PHP Programming Innovation award nominee
August 2019
Number 9
Node.js is a popular JavaScript based package that is commonly used to implement Web based applications like PHP but using JavaScript language.

This package provides a solution to allow a PHP application to communicate with a Node.js based application.


Manuel Lemos
Picture of Juraj Puchký
  Performance   Level  
Name: Juraj Puchký <contact>
Classes: 10 packages by
Country: Czech Republic Czech Republic
Innovation award
Innovation award
Nominee: 3x

Details

php-node-ipc-client

node-ipc client for php

node-ipc client implementation in PHP

> Author: Juraj Puchký - BABA Tumise s.r.o. <info@baba.bj> > > Web: http://www.baba.bj > > GIT: https://github.com/sjurajpuchky/php-node-ipc-client >

INTRODUCTION

I was in a situation when I need to connect to node-ipc (nodejs) server by PHP client for one project written within the Symfony framework. So I create this simple package to emit messages to my nodejs application from PHP.

HOW TO RUN

go to examples and start nodejs application from terminal

> cd examples/nodejs-ipc-server > > npm install > > node src/server.js

then go to client in separated terminal

> cd examples/client > > composer install > > php ipc-client.php >

  Files folder image Files  
File Role Description
Files folder imageexamples (2 directories)
Files folder imagesrc (3 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
Files folder imageclient (2 files)
Files folder imagenodejs-ipc-server (1 file, 1 directory)

  Files folder image Files  /  examples  /  client  
File Role Description
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file ipc-client.php Example Example script

  Files folder image Files  /  examples  /  nodejs-ipc-server  
File Role Description
Files folder imagesrc (1 file)
  Accessible without login Plain text file package.json Data Auxiliary data

  Files folder image Files  /  examples  /  nodejs-ipc-server  /  src  
File Role Description
  Accessible without login Plain text file server.js Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
  Plain text file Client.php Class Class source
  Plain text file Message.php Class Class source
  Plain text file SocketClient.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:94
This week:0
All time:9,459
This week:298Up

For more information send a message to info at phpclasses dot org.