We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

XHP-JS (Server-side & Client-side efficiency) and the future of Phalcon

Phalcon became really great tool for turning my ZF1 legacy code into something usable last year.

Everything was great ... till I started getting more more into isomorphic React/Flux/Node/ES6 movement... and finally got into "hot-reload" staff which don't loose data state.

For example Redux https://github.com/gaearon/redux

Redux/Flux became huge productivity boost in very short period of time for me ... and I want the same thing in Phalcon community!

So please consider the potential port of XHP-JS into Phalcon. https://code.facebook.com/posts/858739974205250/announcing-xhp-js-building-efficient-user-interface-components-with-hack-react-and-xhp/

XHP-JS allows to generate React components on server.

Please recognize it as beginning of new huge trend in the web developemnt!

As Facebook has grown, there have been three major classes of issues for our UI code:

Server-side efficiency: HTTP responses should be quick and easy to compute. Client-side efficiency: Anything computed inside the web browser still needs to be fast so we don't harm perceived load time or battery life. Developer efficiency: Code should be easy to understand, easy to reuse, and easy to refactor. We solve these issues with several open-source projects: XHP provides a safe, easy-to-use abstraction for server-side UI components; Hack adds convenient support for asynchronous operations; and React provides an efficient client-side UI library.

The open-source XHP library has recently gained support for Hack's async functionality — but purely server-side UIs aren't sufficient for the modern web. Today's release of XHP-JS provides the ability to add client-side logic to XHP components and even to create instances of React components from Hack code.

MeteorJS community noticed React trend ... Phalcon should be the next one. https://info.meteor.com/blog/meteor-the-missing-infrastructure-for-building-great-react-apps

P.s. I can't do it ... I have one half-day a week to do programming.