https://github.com/mathsgod/light-server
https://github.com/mathsgod/light-server
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mathsgod/light-server
- Owner: mathsgod
- License: mit
- Created: 2025-03-18T04:49:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-31T07:27:29.000Z (6 months ago)
- Last Synced: 2026-01-02T22:15:30.825Z (6 months ago)
- Language: PHP
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Light Server
A lightweight PHP web framework with a simple file-based routing convention.
## Features
- 🚀 Lightweight design and fast startup
- 📄 File-system based routing
- 🛠️ PSR-7 standard support
- 💪 Built-in middleware system
- 🔄 Simple HTTP method handling (GET, POST, etc.)
## Installation
Install via Composer:
```bash
composer require mathsgod/light-server
```
## Quick Start
### Basic Setup
1. Create a `pages` folder in your project root
2. Create a `pages/index.php` file
### Starting the Server
```php
run();
```
## Usage
### Simple Example
In `pages/index.php`:
```php