News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
A First Look at React
March 26, 2013 @ 10:01:33

On PHPMaster.com there's a new tutorial that introduces you to React, the PHP-based event-driven non-blocking socket tool that's similar to some of the functionality Node.js provides. The article is a very basic introduction but can help get your feet wet with the tool.

For the past couple of years, Node.js has been drawing increasing amounts of attention as a promising web technology. While it has some strengths, like being event driven, some people just want to stick to PHP. For over a year now, however, there has been a similar project for PHP named React. React is mostly coded by Igor Wiedler, who is also a prominent contributor to the Silex framework. While reading through the React examples, it really does look similar to Node.js.

Included in the post are the instructions on how to get the latest version of React (via Composer) and the code to create a sample server that just writes out a string with a counter for the number of requests made. There's also an example of a "keystroke logger" for all data that's coming across the connection. The author (Igor) notes, however, that he wouldn't recommend using React in production, though, as its target is mostly those working with "cutting-edge technologies" rather than more stable applications.

0 comments voice your opinion now!
react tutorial introduction nodejs socket server example


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Do you queue? Introduction to the Zend Server Job Queue

PHPFreaks.com: Regular Expressions (Part1) - Basic Syntax

Nadeau Software: PHP tip: How to get a web page using CURL

Builder.com: Match users to their geo-location with PHP and PEAR Net:Geo

Kevin Schroeder's Blog: ZendCon 2010 Podcast - Introducing Zend Framework 2.0


Community Events

Don't see your event here?
Let us know!


conference part2 language php7 podcast api configure application series opinion interview performance community release framework example voicesoftheelephpant introduction laravel symfony2

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework