PHPackages                             systonia/lento - 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. systonia/lento

ActiveLibrary[Framework](/categories/framework)

systonia/lento
==============

A lightweight modular API framework for PHP, bundling routing, middleware, CORS, logging, and Eloquent ORM.

v0.3.3(4mo ago)09[1 issues](https://github.com/systonia/lento/issues)MITPHPPHP &gt;=8.4CI failing

Since Aug 4Pushed 4mo agoCompare

[ Source](https://github.com/systonia/lento)[ Packagist](https://packagist.org/packages/systonia/lento)[ RSS](/packages/systonia-lento/feed)WikiDiscussions main Synced 1mo ago

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

[![Latest Version](https://camo.githubusercontent.com/881e1ee3bfe8b6b68bc28435954718420b0e8f9b694d74982be9ca8a1c85716c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737973746f6e69612f6c656e746f2e737667)](https://packagist.org/packages/systonia/lento)[![Build](https://github.com/LentoLeisenfeld/LentoApi/actions/workflows/build.yaml/badge.svg)](https://github.com/LentoLeisenfeld/LentoApi/actions/workflows/build.yaml/badge.svg)[![PSR-3 Compatible](https://camo.githubusercontent.com/1d45415ba880207aa9103c944fec1d244cbabf3d1b57b9c3282a5e630d67996e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d2d332d636f6d70617469626c652d627269676874677265656e2e737667)](https://www.php-fig.org/psr/psr-3/)[![PSR-4 Compatible](https://github.com/LentoLeisenfeld/LentoApi/actions/workflows/psr-4.yaml/badge.svg)](https://www.php-fig.org/psr/psr-4/)[![PHP Version](https://camo.githubusercontent.com/b37db47746bb49d291c47c3cc8fabd15219dc271ef4a998933fcd59e950d22b3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342d626c7565)](https://camo.githubusercontent.com/b37db47746bb49d291c47c3cc8fabd15219dc271ef4a998933fcd59e950d22b3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342d626c7565)[![License](https://camo.githubusercontent.com/3de1c2cbd743f44c8802bb5624dddcf5624630a7952fe1f565eb22cbb026c782/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4c656e746f4c656973656e66656c642f4c656e746f417069)](https://camo.githubusercontent.com/3de1c2cbd743f44c8802bb5624dddcf5624630a7952fe1f565eb22cbb026c782/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4c656e746f4c656973656e66656c642f4c656e746f417069)

LentoApi
========

[](#lentoapi)

A lightweight, modular PHP API framework with built-in routing, **Illuminate Database (Eloquent ORM)** integration, logging, CORS, and middleware support.

---

Features
--------

[](#features)

- Attribute-based routing and controllers
- Bundled **Illuminate Database (Eloquent ORM)** for powerful database interactions
- PSR-3 compatible logging with flexible loggers (file, stdout)
- Built-in CORS support
- Middleware pipeline support
- OpenAPI/OpenAPI integration
- Simple dependency injection using `#[Service]` and `#[Inject]` attributes

---

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

[](#installation)

Add LentoApi to your project via Composer:

```
composer require lento/lentoapi
```

If you want to develop LentoApi locally or use a custom path repository, configure `composer.json` accordingly.

Make sure to install dependencies and autoload:

```
composer install
composer dump-autoload -o
```

---

Basic Usage
-----------

[](#basic-usage)

Create an `index.php` or front controller to bootstrap your API.

Here is an example usage that demonstrates routing, Illuminate Database ORM configuration, logging, CORS, and middleware:

```
