Home Photon: A PHP Micro Framework Built with Mongrel2 and ZeroMQ

Photon: A PHP Micro Framework Built with Mongrel2 and ZeroMQ

Photon is an open source PHP “micro framework” using Mongrel2 and ZeroMQ. It was created by Loïc d’Anterroches, who claims that Photon is three to 10 times faster than frameworks such as Zend. “Photon does not try to do everything, the core is small, easy to understand and without magic,” d’Anterroches writes.

As an example, d’Anterroches posted the code for a real-time chat application built with Photon. “This is effectively the entire “server side views handling the jsSocket connection,” he wrote on Hacker News. “The front end is a copy/paste of the chat available in the Mongrel2 examples.”

Mongrel2 is a Web server built from the ground up to be extremely fast. It was founded by Zed Shaw, who also created Mongrel, but it is a complete departure from the original Mongrel.

ZeroMQ is a messaging layer that d’Anterroches claims enables Photon to be extremely flexible yet high performance.

Since Photon is so minimal, additional components will soon be available through what d’Anterroches calls the Particles Project.

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.