PHPackages                             iviphp/ivi - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. iviphp/ivi

ActiveProject[HTTP &amp; Networking](/categories/http)

iviphp/ivi
==========

Ivi.php is a fast, lightweight, and modular PHP framework with expressive routing, built-in ORM, caching, and WebSocket support—ideal for modern APIs and SPAs.

v1.6.0(4mo ago)1643[11 issues](https://github.com/iviphp/ivi/issues)MITPHPPHP &gt;=8.1CI passing

Since Nov 4Pushed 4mo ago1 watchersCompare

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

READMEChangelogDependencies (9)Versions (55)Used By (0)

 [![Ivi.php Banner](https://camo.githubusercontent.com/1a534380dd91d18cf4e0dfcc9b6a5e1307285d6ca66b6ab0226acc0a8a4c4c2c/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f64776a6265643278622f696d6167652f75706c6f61642f76313736323532343631382f6976697068705f6a7270656d612e706e67)](https://camo.githubusercontent.com/1a534380dd91d18cf4e0dfcc9b6a5e1307285d6ca66b6ab0226acc0a8a4c4c2c/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f64776a6265643278622f696d6167652f75706c6f61642f76313736323532343631382f6976697068705f6a7270656d612e706e67)

Ivi.php
=======

[](#iviphp)

 [![](https://camo.githubusercontent.com/87a9b94eb012dd8b2e6f9b91a6ceda9768e1bb9ea33ea60f540c3490534683ad/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322b2d626c7565)](https://camo.githubusercontent.com/87a9b94eb012dd8b2e6f9b91a6ceda9768e1bb9ea33ea60f540c3490534683ad/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322b2d626c7565) [![](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)

🟩 **Ivi.php** — Simple. Modern. Expressive.
===========================================

[](#-iviphp--simple-modern-expressive)

> **“Code with clarity.”**
> Ivi.php is a modern PHP framework built for developers who value simplicity, speed, and expressive code.
> Its minimal core and clean structure make building APIs and web applications a joyful experience.

---

🚀 Getting Started
=================

[](#-getting-started)

Welcome to **Ivi.php** — a lightweight, modern framework designed to help you build fast and elegant PHP applications.

This guide will walk you through:

- Bootstrapping a new project
- Understanding the folder layout
- Creating your first route, controller, and view
- Connecting to a database with ease

---

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

[](#requirements)

- PHP **8.2+**
- PDO + driver (e.g. `pdo_mysql` or `pdo_sqlite`)
- Composer
- Recommended: `php -S localhost:8000 -t public` for local dev

---

1) Installation
---------------

[](#1-installation)

### A. Create a project

[](#a-create-a-project)

```
composer create-project iviphp/ivi my-app
cd my-app
```

> If you cloned the repo directly, run `composer install`.

### B. Project structure (overview)

[](#b-project-structure-overview)

```
.
├─ bootstrap/          # app boot strap & helpers
├─ config/             # app, routes, database config
├─ core/               # ivi.php framework core (Bootstrap, Http, ORM, ...)
├─ public/             # web root (index.php)
├─ src/                # your application code (Controllers, Models, ...)
├─ views/              # PHP templates
├─ scripts/            # migrations, seeds, dev scripts
├─ docs/               # documentation
└─ vendor/
```

---

2) First Run
------------

[](#2-first-run)

Serve the app:

```
php -S localhost:8000 -t public
```

Open:

You should see the default page or a basic route response (see next section).

---

3) Routing
----------

[](#3-routing)

Routes are declared in `config/routes.php`.

```
