Do you have an interest in getting PHP support in Azure Functions? Help me by answering a couple of questions about your PHP and Microsoft Azure desires.

Microsoft Azure is an awesome cloud service and PHP is an awesome technology to build amazing applications. And Azure Functions for serverless compute are a great way to reduce the dependency on complex logic, making your solutions super fast and reliable.

In2it has many PHP projects for clients successfully running in Microsoft Azure and our company is always looking for new ways to improve. See our latest article on “Scale to the clouds” on how we improve WordPress performance and security with Microsoft Azure.

Unfortunately Azure Functions don’t support PHP, even though PHP has evolved into a language that is capable of processing in a non-blocking way. Is it a lack of interest in PHP support for Azure Functions or something else? I don’t know.

Swoole for instance is a high-performance networking framework for PHP using an event-driven, asynchronous, non-blocking I/O model. It can be used to develop high-performance, scalable, concurrent TCP, UDP, Unix socket, HTTP, Websocket services. Another library that is gaining popularity is Bref but because there’s no PHP support in Azure, they only provide solutions for AWS.

<?php
require_once __DIR__ . '/../vendor/autoload.php';

$server = new Swoole\HTTP\Server("127.0.0.1", 9501);

$server->on("start", function (Swoole\Http\Server $server) {
    echo "Swoole http server is started at http://127.0.0.1:9501\n";
});

$server->on("request", function (Swoole\Http\Request $request, Swoole\Http\Response $response) {
    $response->header("Content-Type", "text/plain");
    $response->end("Hello World\n");
});

$server->start();

Therefor I’ve created this simple Google Form to collect some insights. If PHP is your passion and Microsoft Azure is your cloud of preference, please let me know if PHP support in Azure Functions is desired.


Thank you for your support.


Michelangelo van Dam

Michelangelo van Dam is a senior PHP architect, PHP community leader and international conference speaker with many contributions to PHP projects and community events.