title: application with nodejs and php rest apis
body: <p>we are having requirement for a ios native app with mobile number as uuid and involves other functionalities with chat also.</p>
  
  <ol>
  <li>Register mobile number as uuid and create token against it or we can use uuid and mobile binding for notifications.</li>
  <li>For chat (group / individual) , when we use nodejs server and socket io  client. when creating client, how do we map mobile number
  with that socket at server side.</li>
  <li>if we use php REST apis for most of the calls, how we integrate php to nodejs calls.</li>
  </ol>
  
  <p>what we are trying to achieve is using PHP REST apis mostly. and use nodejs socketio for chat and realtime notifications. i am looking into multiple examples but not matching the above scenarios.</p>
  
  <p><a href="https://github.com/jdutheil/nodePHP" rel="nofollow noreferrer">https://github.com/jdutheil/nodePHP</a></p>
  
  <p><a href="https://entwickler.de/webandphp/integrating-node-js-with-php-125830.html" rel="nofollow noreferrer">https://entwickler.de/webandphp/integrating-node-js-with-php-125830.html</a></p>
  
  <p><a href="http://elephant.io/" rel="nofollow noreferrer">http://elephant.io/</a> (php and socketio)</p>
  
  <p>As our client is ios native app, so we are not sure which way to go for it. Communication between nodejs and PHP is confusion here.<a href="https://i.stack.imgur.com/vUpbl.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vUpbl.jpg" alt="enter image description here"></a></p>