PHPackages                             liten/liten - 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. liten/liten

ActiveLibrary[Framework](/categories/framework)

liten/liten
===========

Liten is a small, simple, and restful micro framework. Even though it is small, you can still use it to build intelligent and dynamic restful api's.

v1.0.9(8y ago)9871MITPHPPHP ^7.0CI failing

Since Oct 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/nomadicjosh/Liten)[ Packagist](https://packagist.org/packages/liten/liten)[ RSS](/packages/liten-liten/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

Liten
=====

[](#liten)

[![Build Status](https://camo.githubusercontent.com/2ebba0d200c7a1c91db160642b470d7ef01bdf47dc7e040e182fbc61150a2a8c/68747470733a2f2f7472617669732d63692e6f72672f7061726b65726a2f4c6974656e2e737667)](https://travis-ci.org/parkerj/Liten)[![Latest Stable Version](https://camo.githubusercontent.com/64116f30f2b8be2425fb71bcfc0401a115f87d6215bf6265b8570e707cca52cf/68747470733a2f2f706f7365722e707567782e6f72672f6c6974656e2f6c6974656e2f762f737461626c65)](https://packagist.org/packages/liten/liten)[![Total Downloads](https://camo.githubusercontent.com/2175c1687d5754d714b0013a5dc68c82535d5b9a7776afbb39c1fe07be233fe8/68747470733a2f2f706f7365722e707567782e6f72672f6c6974656e2f6c6974656e2f646f776e6c6f616473)](https://packagist.org/packages/liten/liten)[![License](https://camo.githubusercontent.com/86bee304cae7aa806dd38ee86a87c258dcd02fed57ad2144f4d843d9939f832a/68747470733a2f2f706f7365722e707567782e6f72672f6c6974656e2f6c6974656e2f6c6963656e7365)](https://packagist.org/packages/liten/liten)[![Join the chat at https://gitter.im/parkerj/Liten](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/parkerj/Liten?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Liten is a small and simple microframework. Even though it is small, you can still use it to build intelligent and dynamic restful api's.

System Requirement
------------------

[](#system-requirement)

Minimum PHP version 5.4

Features
--------

[](#features)

- Simple Configuration
- Static Routes
- Dynamic Routes
- Route Subpatterns
- Group Routing
- Before Route Middlewares
- Before Router Middlewares
- After Router Middlewares
- HTTP methods and responses

Install
-------

[](#install)

```
$ composer require liten/liten

```

Rewrite Rules
-------------

[](#rewrite-rules)

### .htaccess

[](#htaccess)

```
RewriteEngine On

# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
#
# RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

```

### Nginx (root directory)

[](#nginx-root-directory)

```
location / {
    try_files $uri /index.php$is_args$args;
}

```

### Nginx (subdirectory)

[](#nginx-subdirectory)

```
location /liten {
    try_files $uri /liten/index.php$is_args$args;
}

```

Hello World Example
-------------------

[](#hello-world-example)

Instantiate a new Liten Application:

```
$app = new \Liten\Liten();
```

GET Route:

```
$app->get('/hello/(\w+)/' function($name) {
    echo "Howdy, $name";
}
```

Run the new Liten Application

```
$app->run();
```

Sample Application
------------------

[](#sample-application)

The [Liten Blog](https://github.com/parkerj/Liten-Blog) is a sample application to show what you can do with the Liten Framework.

Documentation &amp; Community
-----------------------------

[](#documentation--community)

Would love to have your input and help into making Liten a small but yet powerful micro framework. Head on over to the [online documentation](https://www.litenframework.com/) site to ask questions and or make suggestions.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~156 days

Total

5

Last Release

2934d ago

PHP version history (2 changes)v1.0.5PHP &gt;=5.4.0

v1.0.9PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/86d25d805eb5b710fab925600008b72f9f5f11a5206154fcd1ded01794a4d1b8?d=identicon)[nomadicjosh](/maintainers/nomadicjosh)

---

Top Contributors

[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

frameworkmicro-frameworkrest-apirestfulframeworkrestmicroframeworkliten

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[leafs/leaf

Elegant PHP for modern developers

1.3k47.4k11](/packages/leafs-leaf)[phprest/phprest

PHP Rest Framework.

3049.3k](/packages/phprest-phprest)[psx/psx

PHP REST API Framework

17112.6k3](/packages/psx-psx)[podcastcrawler/podcastcrawler

PHP library to find podcasts

412.7k1](/packages/podcastcrawler-podcastcrawler)

PHPackages © 2026

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