PHP code example of natanfelles / php-server
1. Go to this page and download the library: Download natanfelles/php-server 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/ */
natanfelles / php-server example snippets
sh
composer global
sh
echo 'alias php-server="~/php-server/bin/php-server"' >> ~/.bashrc
ini
php = PHP_BINARY
host = localhost
port = 8080
root = ./public
autoindex = true
index = index.php
error_reporting = E_ALL
[ini]
display_errors = 1
display_startup_errors = 1
max_execution_time = 360
post_max_size = 200M
upload_max_filesize = 200M
[server]
ENVIRONMENT = development
sh
php-server --port 8081
sh
php-server --php php8.4 --port 8081