PHPackages                             seip25/lila-php - 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. seip25/lila-php

ActiveProject[Framework](/categories/framework)

seip25/lila-php
===============

Modern PHP framework , built for developing scalable web applications and APIs. React integration, Twig templating, internationalization (i18n), request validation, flexible environment configuration,Seeders,Migrations and more.

v1.20(1mo ago)189MITPHPPHP &gt;=8.1

Since Feb 2Pushed 1mo agoCompare

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

READMEChangelog (10)Dependencies (4)Versions (24)Used By (0)

LilaPHP Framework
=================

[](#lilaphp-framework)

**A lightweight, modular, and modern PHP micro-framework**

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/854124dd57cfd3aad3184fca9760bf1f33a5ec1e5d080cfbe8aa4e3337ba46e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e302d3838393242462e737667)](https://php.net)

[Documentation](https://seip25.github.io/LilaPHP/) • [GitHub](https://github.com/seip25/LilaPHP)

---

🌟 Overview
----------

[](#-overview)

**LilaPHP** is a lightweight and modular PHP micro-framework designed for **simplicity**, **flexibility**, and **security**. It provides a minimal yet powerful foundation for building web applications with clean routing, middleware, Twig templates, and Dotenv configuration.

LilaPHP gives you **control** and **performance** — no boilerplate, no heavy dependencies, just clean, fast PHP.

---

✨ Why Choose LilaPHP?
---------------------

[](#-why-choose-lilaphp)

LilaPHP was designed with one clear purpose — to give developers **full control**, **performance**, and **simplicity** without the unnecessary overhead of large, opinionated frameworks.

### 🎯 Key Features

[](#-key-features)

- ⚡ **Lightweight core** — Loads only what's needed for each request
- 🧩 **Modular structure** — Each app, route, or endpoint can define its own configuration
- 🔒 **Secure by default** — Built-in CSRF protection, input sanitization, and isolated session handling
- 🪶 **SEO-friendly** — Clean URLs, optimized image helpers, and auto-generated metadata
- 🖥️ **Universal compatibility** — Works on NGINX, Apache, FrankenPHP, Swoole, VPS, or shared hosting
- 🧠 **Developer experience first** — Instant setup, clear routing, and intuitive Twig integration
- 🚀 **Performance oriented** — Minimal I/O, cached helpers, and pre-optimized rendering for production
- 🌐 **Multi-language support** — Built-in localization system with English, Spanish, Portuguese, and Brazilian Portuguese

### 🔥 Modular Architecture

[](#-modular-architecture)

Each entry file can instantiate the framework with its own configuration, giving you complete control over security, middleware, and session behavior.

```
// app/index.php - Default configuration
$app = new App();
```

```
// app/newApp.php - Custom configuration
$app = new App([
    'security' => [
        'cors' => false,
        'sanitize' => false,
        'logger' => true
    ]
]);
```

---

📦 Installation
--------------

[](#-installation)

### Install with composer

[](#install-with-composer)

```
composer create-project seip25/lila-php LilaPHP
```

Edit `.env` and update the base URL:

```
URL_PROJECT=http://localhost/LilaPHP #or "http://localhost:8000/"
DEBUG=true
LANG="eng"
```

### Run the Application or visit  in LAMPP ,XAMPP,WAMP

[](#run-the-application-or-visit-httplocalhostlilaphp-in-lampp-xamppwamp)

**Using PHP's Built-in Server (Development):**

```
php -S localhost:8000
```

Then visit

### React

[](#react)

Install
-------

[](#install)

```
cd app
npm install
npm run dev
npm run build
```

**Edit in app/resources/pages :**

📁 Project Structure
-------------------

[](#-project-structure)

```
LilaPHP/
├── app/
│   ├── core/          # Core framework files (router, response, validator)
│   ├── templates/     # Twig templates
│   ├── locales/       # Language files (eng, esp, bra, por)
│   ├── vendor/        # Composer dependencies
│   ├── .env           # Environment configuration
│   └── index.php      # Framework bootstrap
│
├── public/            # Public assets (CSS, JS, images)
├── index.php          # Main entry point
├── login/             # Independent app example
│   └── index.php
├── set-lang/          # Language switcher
│   └── index.php
└── .htaccess          # Apache configuration

```

---

🚀 Quick Start
-------------

[](#-quick-start)

### Basic Routing

[](#basic-routing)

```
