PHP and node.js Together

12,694 views
12,302 views

Published on

This goes over a bit of what node.js is, why you might want to use it, and how to use it with your PHP projects.

Published in: Technology
1 Comment
3 Likes
Statistics
Notes
  • But how to answer web visitors ? we have to choose between php and node.js to catch the port 80
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
12,694
On SlideShare
0
From Embeds
0
Number of Embeds
312
Actions
Shares
0
Downloads
82
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide

PHP and node.js Together

  1. 1. 5/15/2013 php|tek 2013E-mail: chris@ctankersley.comTwitter: @dragonmantankApp.net: @ctankersley
  2. 2.  ChrisTankersley Doing PHP for 9Years Lots of projects no one uses, and a few thatsome do TL;DR https://github.com/dragonmantankMarch 3rd, 2013 MidwestPHP 2
  3. 3.  Go over what node.js is What good is node.js? Different ways to use it with PHP5/15/2013 php|tek 2013
  4. 4. 5/15/2013 php|tek 2013
  5. 5. node.js is a server-side implementation of theGoogleV8 JavaScript engineIn broad terms, it does the same job as PHP butwith JavaScript5/15/2013 php|tek 2013
  6. 6. 5/15/2013 php|tek 2013
  7. 7.  It’s JavaScript npm is pretty awesome It’s fast There’s a huge community5/15/2013 php|tek 2013
  8. 8.  It’s just JavaScript, nothing fancy5/15/2013 php|tek 2013
  9. 9. 5/15/2013 php|tek 2013
  10. 10.  node.js Silex5/15/2013 php|tek 2013
  11. 11.  Background tasks Server-side scripts API endpoints Websites5/15/2013 php|tek 2013
  12. 12. 5/15/2013 php|tek 2013
  13. 13.  Call node.js just like any other program5/15/2013 php|tek 2013
  14. 14. 5/15/2013 php|tek 2013
  15. 15.  Push something into a redis via PHP, andhave node.js listen and react5/15/2013 php|tek 2013
  16. 16.  PHP and node.js connect to a redis channel PHP publish something to the channel node.js gets the message and reacts Really good for reacting to events, butrequires node.js to be listening5/15/2013 php|tek 2013
  17. 17.  Same idea, but the work sits there untilsomeone deals with it5/15/2013 php|tek 2013
  18. 18.  Allows two-way communication from thebrowser to the server Most browsers should support it Use socket.io to handle old browsers5/15/2013 php|tek 2013
  19. 19. 5/15/2013 php|tek 2013
  20. 20. 5/15/2013 php|tek 2013
  21. 21. 5/15/2013 php|tek 2013chris@ctankersley.com@dragonmantankhttps://joind.in/8165

×