PHPackages                             lithephp/framework - 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. lithephp/framework

ActiveLibrary[Framework](/categories/framework)

lithephp/framework
==================

Lithe is a flexible and efficient PHP framework for creating robust web applications that adapt to developers' needs.

v1.4.2(1y ago)2414411MITPHPPHP ^8.2

Since Oct 3Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (11)Versions (22)Used By (1)

Lithe
=====

[](#lithe)

 [![Lithe Logo](https://github.com/lithephp/.github/raw/main/lithecore.png)](https://github.com/lithephp/.github/blob/main/lithecore.png)

 [![Total Downloads](https://camo.githubusercontent.com/d62f763f906cab1b79b6439a2abdbec015eda9bd05e45a074495ba2517107987/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c697468657068702f6672616d65776f726b)](https://packagist.org/packages/lithephp/framework) [![Latest Stable Version](https://camo.githubusercontent.com/1f2c12a07d49fe4b615f3c47d9a46ec750eb2eb6d5804554f8be5a9524fa48f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c697468657068702f6672616d65776f726b)](https://packagist.org/packages/lithephp/framework) [![License](https://camo.githubusercontent.com/838206573f0dd915a63a9af65039d9a417e6b324ac946cc4eb63a9d5f9ec8db6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c697468657068702f6672616d65776f726b)](https://packagist.org/packages/lithephp/framework)

What is Lithe?
--------------

[](#what-is-lithe)

Lithe is a PHP framework known for its simplicity, flexibility, and efficiency. Inspired by Express.js, Lithe is designed to help developers build web applications quickly and effectively. The name "Lithe" reflects the core characteristics of the framework: flexible and agile.

Simple and Flexible Routing
---------------------------

[](#simple-and-flexible-routing)

In Lithe, defining routes is very simple. You can use methods like `get()`, `post()`, and others to create routes that respond to different types of HTTP requests:

```
get('/hello/:name', function ($req, $res) {
    $res->send('Hello, ' . $req->param('name'));
});
```

Discover how [routing in Lithe](https://lithephp.vercel.app/docs/the-basics/routing) can simplify your development and offer complete control over your application's routes.

Powerful Middleware
-------------------

[](#powerful-middleware)

In Lithe, middleware is your line of defense, allowing you to inspect, filter, and manipulate HTTP requests before they reach the final routes. Imagine adding functionalities like authentication and logging in a modular and reusable way!

Here’s how easy it is to define and use middleware:

```
// Middleware to check if the token is valid
$EnsureTokenIsValid = function ($req, $res, $next) {
    $token = $req->param('token');

    if ($token !== 'my-secret-token') {
        $res->send('Invalid token.');
    }

    $next();
};

// Protected route using the middleware
get('/protected/:token', $EnsureTokenIsValid, function ($req, $res) {
    $res->send('Protected content accessed successfully!');
});
```

Learn more about [middlewares in Lithe](https://lithephp.vercel.app/docs/the-basics/middleware) and see how they can transform the way you develop and maintain your applications.

Database Integration
--------------------

[](#database-integration)

Connecting to databases is straightforward with Lithe. The framework supports popular ORMs like Eloquent and native PHP drivers such as MySQLi and PDO. Configure your connections in the `.env` file and manage schema migrations easily.

```
DB_CONNECTION_METHOD=eloquent
DB_CONNECTION=mysql
DB_HOST=localhost
DB_NAME=lithe
DB_USERNAME=root
DB_PASSWORD=
DB_SHOULD_INITIATE=true

```

Learn more about [database integration in Lithe](https://lithephp.vercel.app/docs/database/integration) and see how easy it is to manage your data.

Database Migrations
-------------------

[](#database-migrations)

Maintain consistency and integrity of data in your applications with automated migrations. With Lithe, you can create and apply migrations quickly and easily using any ORM interface or database driver.

```
php line make:migration CreateUsersTable --template=eloquent
php line migrate
```

Learn more about [migrations in Lithe](https://lithephp.vercel.app/docs/database/migrations) and make the most of this feature to build robust and scalable applications.

Contributing
------------

[](#contributing)

Contributions are welcome! If you find an issue or have a suggestion, feel free to open an [issue](https://github.com/lithephp/framework/issues) or submit a [pull request](https://github.com/lithephp/framework/pulls).

License
-------

[](#license)

Lithe is licensed under the [MIT License](https://opensource.org/licenses/MIT). See the [LICENSE](LICENSE) file for more details.

Contact
-------

[](#contact)

If you have any questions or need support, get in touch:

- **Instagram**: [@lithephp](https://instagram.com/lithephp)
- **Discord**: [Lithe](https://discord.gg/nfskM6x9x7)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance49

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

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

Recently: every ~42 days

Total

21

Last Release

378d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56173de3a7bf7099dd8168efd730d3c2fb5df5174a123fdc37cee8c3589e2345?d=identicon)[williamhumbwavali](/maintainers/williamhumbwavali)

---

Top Contributors

[![williamhumbwavali](https://avatars.githubusercontent.com/u/127023095?v=4)](https://github.com/williamhumbwavali "williamhumbwavali (68 commits)")

---

Tags

frameworklithephp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k509.9M17.0k](/packages/laravel-framework)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[laravel/sail

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)

PHPackages © 2026

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