PHPackages                             mathsgod/light-server - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mathsgod/light-server

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mathsgod/light-server
=====================

1.1.0(4mo ago)0681MITPHPPHP ^8.1

Since Mar 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/mathsgod/light-server)[ Packagist](https://packagist.org/packages/mathsgod/light-server)[ RSS](/packages/mathsgod-light-server/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (8)Used By (1)

Light Server
============

[](#light-server)

A lightweight PHP web framework with a simple file-based routing convention.

Features
--------

[](#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
------------

[](#installation)

Install via Composer:

```
composer require mathsgod/light-server
```

Quick Start
-----------

[](#quick-start)

### Basic Setup

[](#basic-setup)

1. Create a `pages` folder in your project root
2. Create a `pages/index.php` file

### Starting the Server

[](#starting-the-server)

```
