PHP Classes

File: test-builtin.php

Recommend this page to a friend!
  Classes of Ahmad Mustapha   PHP Application Server   test-builtin.php   Download  
File: test-builtin.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Application Server
Run application with different types of Web server
Author: By
Last change:
Date: 2 years ago
Size: 201 bytes
 

Contents

Class file image Download
<?php

use PHPServer\BuiltIn\Server;

require
'vendor/autoload.php';

Server::create('127.0.0.1', '9904')
    ->
onRequest(fn() => var_dump('Request Received'))
    ->
start()
    ->
logOutputToConsole();