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

ActiveLibrary[Framework](/categories/framework)

line/line
=========

Very lightweight PHP Micro-Framework

1.1.0(10y ago)796MITPHP

Since Jan 30Pushed 10y ago2 watchersCompare

[ Source](https://github.com/christianblos/line)[ Packagist](https://packagist.org/packages/line/line)[ RSS](/packages/line-line/feed)WikiDiscussions master Synced today

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

What is Line?
-------------

[](#what-is-line)

Line is a very lightweight PHP Micro-Framework. It has the following features:

- Very easy to use.
- You can extend and replace ALL components.
- Flexible Controller definition.
- It only does what it needs (If you need more, just extend it).

Install via Composer
--------------------

[](#install-via-composer)

Run `composer require line/line`.

Example Usage
-------------

[](#example-usage)

```
// match URLs to their Controller
$routes = [
    '/' => [
        'name' => 'index',
        'controller' => 'SomeController:index',
    ],
    '/article/' => [
        'name' => 'article',
        'controller' => function ($id) {
            // show article
        },
    ],
];

// define Controller for error page (optional but recommended)
$errorController = 'ErrorController:showError';

// create App object
$router = new \Line\Routing\Router($routes, $errorController);
$app = new \Line\App($router);

// show backtrace on errors
$app->debug = true;

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

See [docs](docs/index.md) for more information.

License
-------

[](#license)

The MIT license.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity66

Established project with proven stability

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 ~80 days

Total

3

Last Release

4010d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/864455?v=4)[Christian Blos](/maintainers/christianblos)[@christianblos](https://github.com/christianblos)

---

Tags

controllermicroframework

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[slim/slim-skeleton

A Slim Framework skeleton application for rapid development

1.7k464.5k6](/packages/slim-slim-skeleton)[clue/framework-x

Framework X – the simple and fast micro framework for building reactive web applications that run anywhere.

942746.2k8](/packages/clue-framework-x)[htmlburger/wpemerge

A micro framework which modernizes WordPress as a CMS development by providing tools to implement MVC and more.

456140.8k8](/packages/htmlburger-wpemerge)[mmoreram/controller-extra-bundle

Some specific controller annotations

151218.1k5](/packages/mmoreram-controller-extra-bundle)[chubbyphp/chubbyphp-framework

A minimal, highly performant middleware PSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

13745.8k4](/packages/chubbyphp-chubbyphp-framework)[itsgoingd/slim-facades

"Static" interface for various Slim features

7653.9k5](/packages/itsgoingd-slim-facades)

PHPackages © 2026

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