An open API service indexing awesome lists of open source software.

https://github.com/rayiumir/php-server

A simple PHP development server like Laravel's artisan serve for vanilla PHP projects
https://github.com/rayiumir/php-server

command-line development localhost php serve server simple web-development

Last synced: 10 months ago
JSON representation

A simple PHP development server like Laravel's artisan serve for vanilla PHP projects

Awesome Lists containing this project

README

          

# PHP Run Server

A simple PHP development server like Laravel's artisan serve for vanilla PHP projects

# Features

- Instant Setup - No need for XAMPP or WAMP
- Simple & Lightweight - Just one small file
- Configurable - Choose your preferred port
- Full Support - PHP, CSS, JS, images, and more
- Cross-Platform - Windows, Mac, Linux
- Fast & Reliable - Built-in PHP server powered

# Installation

```bash
git clone https://github.com/Rayiumir/php-server.git
cd php-server/
```

# Start the Server

```bash
# Simple run on port 8000
php run server

# Run on custom port
php run server 8080
php run server 3000
```

# View Results

Open your browser and go to the displayed address:

```bash
http://localhost:8000
```

# Server Output

```bash
PHP Development Server
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Project: php-serve
Path: /home/.../www/test/php-serve
PHP: 8.3.6

Server is ready!
Go to http://localhost:8000 to view the project
Press Ctrl+C to stop

[Wed Aug 6 02:16:51 2025] PHP 8.3.6 Development Server (http://localhost:8000) started
```

https://github.com/user-attachments/assets/920cbf6c-3ee9-4765-bc26-e4cf023d3e6b