PHPackages                             glivers/rachie - 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. glivers/rachie

ActiveProject[Framework](/categories/framework)

glivers/rachie
==============

The base foundation for the Rachie PHP framework

v2.0.4(3mo ago)9245MITPHPPHP &gt;=8.0.0

Since Feb 1Pushed 3mo ago6 watchersCompare

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

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

Rachie PHP Framework
====================

[](#rachie-php-framework)

> A lightweight, elegant PHP MVC framework for building web applications quickly.

\[[![Latest Version](https://camo.githubusercontent.com/9f0be83f404f2d466bdec3f8a78aa71b9154ac0899901c6429404b24c61c69bf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d322e302d626c7565)](https://camo.githubusercontent.com/9f0be83f404f2d466bdec3f8a78aa71b9154ac0899901c6429404b24c61c69bf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d322e302d626c7565)\] \[[![PHP Version](https://camo.githubusercontent.com/cc6bb11b39a30fd7a8310c974f9caf71ddbcfe59f74e8fb5c5f69b9a4dee92f7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e312d707572706c65)](https://camo.githubusercontent.com/cc6bb11b39a30fd7a8310c974f9caf71ddbcfe59f74e8fb5c5f69b9a4dee92f7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e312d707572706c65)\] \[[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)\]

Table of Contents
-----------------

[](#table-of-contents)

- [What is Rachie?](#what-is-rachie)
- [Key Features](#key-features)
- [Quick Start](#quick-start)
- [Boot Sequence](#boot-sequence)
- [Routing](#routing)
- [Controllers](#controllers)
- [Models](#models)
- [Views](#views)
- [Configuration](#configuration)
- [CLI Tool (Roline)](#cli-tool-roline)
- [Testing](#testing)
- [Requirements](#requirements)
- [Documentation](#documentation)
- [Contributing](#contributing)
- [License](#license)

What is Rachie?
---------------

[](#what-is-rachie)

Rachie is a simple, lightweight PHP framework that helps you build web applications without the complexity of larger frameworks. If most frameworks feels too heavy and pure PHP feels too raw, Rachie is your sweet spot.

Key Features
------------

[](#key-features)

- **Simple Routing** - URL-based routing works without configuration, custom routes when needed
- **MVC Architecture** - Clean separation of concerns
- **Query Builder** - Fluent database interface with 40+ methods
- **Template Engine** - Simple `{{ }}` syntax with layout inheritance
- **Form Validation** - Built-in validation with custom rules
- **Security First** - CSRF protection, XSS prevention, SQL injection prevention
- **CLI Tool (Roline)** - Generate controllers, models, run migrations
- **Zero Configuration** - Works out of the box

Quick Start
-----------

[](#quick-start)

### Installation

[](#installation)

```
composer create-project glivers/rachie myapp
cd myapp
```

### Configuration

[](#configuration)

Edit `config/database.php`:

```
'mysql' => [
    'host' => 'localhost',
    'username' => 'root',
    'password' => '',
    'database' => 'myapp'
]
```

### Your First Route

[](#your-first-route)

Create `application/controllers/HelloController.php`:

```
