PHP code example of carmelosantana / coqui-toolkit-webserver
1. Go to this page and download the library: Download carmelosantana/coqui-toolkit-webserver library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
carmelosantana / coqui-toolkit-webserver example snippets
declare(strict_types=1);
use CoquiBot\Toolkits\Webserver\WebServerToolkit;
echo $tool->name() . ': ' . $tool->description() . PHP_EOL;
}
// Start a server
$server = $toolkit->tools()[0];
$result = $server->execute([
'action' => 'start',
'docroot' => 'public',
'port' => 8080,
]);
echo $result->content;