The fastest template engine for PHP

$data = [      
(object) [
"code" => 200,
"message" => "OK"
],
(object) [
"code" => 404,
"message" => "Not Found"
],
(object) [
"code" => 500,
"message" => "Internal Server Error"
],
];
$html = '<html><head></head><body>';
foreach ($data as $message) {
$html .= "<p>$message->code : $message->message</p>";
}
$html .= '</body></html>';
<html><head></head><body>
{% for message in data %}
<p>{{ message.code }} : {{ message.message }}</p>
{% endfor %}
</body></html>
<html><head></head><body>
@foreach ($data as $message)
<p>{{ $message->code }} : {{ $message->message }}</p>
@endforeach
</body></html>
wrk --connections=500 --threads=2 --duration=10s http://comet:8080/php

--

--

--

Blazing fast REST APIs with PHP: https://github.com/gotzmann/comet

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

My Annual Review: Seeking Serenity

Git | GitHub and Version Control

Building Web Scraper Using Python: Scraping GitHub Topics In One Go

You Can Learn Anything in Seven Steps

bash: How to get first and last dates of previous month

Launch A WordPress Application On StackOS’ Decentralized Cloud — Simple Guide

CS373 Fall 2020: Erica Martinez

Lsi Scsi Controller Driver

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Serge Gotsuliak

Serge Gotsuliak

Blazing fast REST APIs with PHP: https://github.com/gotzmann/comet

More from Medium

9 Best Salesforce AppExchange Applications for Travel, Transportation, and Hospitality

The challenges of writing a script for a video game

What is world smm panel ?

https://zosmm.com/

trusted cloud mining sites