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

https://github.com/mathsgod/light-server


https://github.com/mathsgod/light-server

Last synced: 4 months ago
JSON representation

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