PHPackages                             daschl/li3\_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. [CLI &amp; Console](/categories/cli)
4. /
5. daschl/li3\_server

ActiveLithium-library[CLI &amp; Console](/categories/cli)

daschl/li3\_server
==================

Booting Lithium from the CLI.

56693[1 issues](https://github.com/daschl/li3_server/issues)[3 PRs](https://github.com/daschl/li3_server/pulls)PHP

Since Aug 10Pushed 13y agoCompare

[ Source](https://github.com/daschl/li3_server)[ Packagist](https://packagist.org/packages/daschl/li3_server)[ RSS](/packages/daschl-li3-server/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

li3\_server: Booting Lithium from the CLI
=========================================

[](#li3_server-booting-lithium-from-the-cli)

This plugin utilizes the new HTTP server integrated in PHP 5.4 and allows you to start your app from the command line, without the need for a server like Apache or Nginx.

*Note that this is highly experimental and while it works, a lot of tests in `/test` seem to fail.*

Requirements
------------

[](#requirements)

- PHP 5.4 as it introduces the new built-in HTTP server.
- Lithium, of course.

Installation
------------

[](#installation)

The easiest way to install `li3_server` is through [Composer](http://packagist.org/about-composer).

```
{
	"require": {
		"daschl/li3_server": "master"
	}
}

```

Alternatively, you can install it directly from GitHub:

```
$ cd libraries
$ git clone git://github.com/daschl/li3_server.git

```

Now you need to add it to your Lithium bootstrap file (`config/bootstrap/libraries.php`):

```
Libraries::add('li3_server');

```

Usage
-----

[](#usage)

Head to the command line and run it through `li3 server`.

```
$ li3 server
--------------------------------------------------------------------------------
Lithium Development Server
--------------------------------------------------------------------------------
Booting: php -S localhost:8000 -t /path/to/webroot
Starting on localhost:8000...

```

You can also override the following settings:

- --php: The path to your PHP binary. Defaults to `php`.
- --host: The hostname to which the server will listen. Defaults to `localhost`.
- --port: The port on which the server will listen. Defaults to `8000`.
- --webroot: A custom webroot. Defaults to `LITHIUM_APP_PATH/webroot`.
- --router: A custom router script. Defaults to the provided one at `config/router.php`.

If you are still running mainly PHP 5.3 and want to experiment with the server, you can do it like this:

```
$ li3 server --php=/home/michael/Downloads/php-5.4.0RC6/sapi/cli/php
--------------------------------------------------------------------------------
Lithium Development Server
--------------------------------------------------------------------------------
Booting: /home/michael/Downloads/php-5.4.0RC6/sapi/cli/php -S localhost:8000 -t /home/michael/web/framework/app/webroot
Starting on localhost:8000...

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e8acfd51f13ae816e905bf7703ab10698ab4629a13f284a184ba1fe38ba89a2?d=identicon)[daschl](/maintainers/daschl)

---

Top Contributors

[![daschl](https://avatars.githubusercontent.com/u/29086?v=4)](https://github.com/daschl "daschl (9 commits)")[![mehlah](https://avatars.githubusercontent.com/u/224928?v=4)](https://github.com/mehlah "mehlah (5 commits)")

### Embed Badge

![Health badge](/badges/daschl-li3-server/health.svg)

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M318](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M18](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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