PHPackages                             liamato/ligght - 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. [Framework](/categories/framework)
4. /
5. liamato/ligght

ActiveLibrary[Framework](/categories/framework)

liamato/ligght
==============

The simple PHP router

1.0.1(11y ago)025BSD-3-ClausePHPPHP &gt;=5.3.0

Since Jan 10Pushed 11y ago1 watchersCompare

[ Source](https://github.com/liamato/ligght)[ Packagist](https://packagist.org/packages/liamato/ligght)[ Docs](https://github.com/liamato/ligght)[ RSS](/packages/liamato-ligght/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

\#ligght ###The simple PHP router

ligght is a PHP micro router that helps you to easily route your *HTTP Requests*. ligght is the easiest and fastest way to create an API.

\##Features

- Standard HTTP Methods
- GET
- POST
- PUT
- DELETE
- PATCH
- OPTIONS
- HEAD
- DEBUG
- Custom HTTP Methods using `\ligght\Interfaces\HttpMethod` interface
- Parameter routing

\##Getting Started

\###Required

- PHP &gt;= 5.3.\*
- Apache `mod_rewrite`

\###Configure evironment

You must include that snippet in `.htaccess` file:

```
Options -MultiViews
RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule .* index.php?$0 [PT,L]

```

Or copy [this](./.htaccess) .htaccess file to the same folder of your index.php

\###Hello World Tutorial

Set a route like this:

```
\ligght\Router::getInstance()->route(
    \ligght\Router::GET,
    '/hello/:name',
    function($name){
        print "Hello, $name";
    },
    array(':name')
);
```

And run the router:

```
\ligght\Router::getInstance()->run();
```

\####Style Guide

Full coded with [PSR-2](http://www.php-fig.org/psr/psr-2/) Coding Style

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4146d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab7c94b386060a81c14c780ce3fb8caaec4414d6b8a550ca05a92dd9f8d4ce63?d=identicon)[liamato](/maintainers/liamato)

---

Top Contributors

[![liamato](https://avatars.githubusercontent.com/u/6226353?v=4)](https://github.com/liamato "liamato (7 commits)")

---

Tags

routerSimpleligghtroutering

### Embed Badge

![Health badge](/badges/liamato-ligght/health.svg)

```
[![Health](https://phpackages.com/badges/liamato-ligght/health.svg)](https://phpackages.com/packages/liamato-ligght)
```

###  Alternatives

[slim/slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs

12.2k49.9M1.3k](/packages/slim-slim)[klein/klein

A lightning fast router for PHP

2.7k1.1M31](/packages/klein-klein)[slim/slim-skeleton

A Slim Framework skeleton application for rapid development

1.6k458.7k6](/packages/slim-slim-skeleton)[pecee/simple-router

Simple, fast PHP router that is easy to get integrated and in almost any project. Heavily inspired by the Laravel router.

696214.6k17](/packages/pecee-simple-router)[rareloop/router

A powerful PHP Router for PSR7 messages inspired by the Laravel API

92178.9k4](/packages/rareloop-router)[yiisoft/router

Yii router

62321.8k21](/packages/yiisoft-router)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
