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

ActiveLibrary[Framework](/categories/framework)

farme/framework
===============

The Farme PHP Framework - Built with procedural simplicity

1.0.6(9mo ago)05MITPHPPHP &gt;=8.0

Since Aug 16Pushed 9mo agoCompare

[ Source](https://github.com/mista78/farme-framwork)[ Packagist](https://packagist.org/packages/farme/framework)[ Docs](https://github.com/mista78/farme-framwork)[ RSS](/packages/farme-framework/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Farme Framework
===============

[](#farme-framework)

The PHP Framework That Just Works - Built with procedural simplicity, powered by dynamic CSS generation, and designed for developers who want to build fast without the complexity of modern frameworks.

Features
--------

[](#features)

- **🧩 Procedural Architecture** - Pure PHP functions, no classes required
- **⚡ Dynamic CSS Generation** - Like Tailwind CSS, but generated on-demand
- **🗺️ Route Auto-Discovery** - Routes automatically discovered from controller annotations
- **🗄️ ORM-like Database** - ActiveRecord-style operations with query builder
- **🎨 Atomic Components** - Reusable UI components built with atomic design principles
- **🎛️ Modern Templates** - Beautiful login/register templates with home page styling

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

[](#installation)

### Using Composer (Recommended)

[](#using-composer-recommended)

```
composer create-project farme/project my-app
cd my-app
php console.php serve
```

### Manual Installation

[](#manual-installation)

1. Download the framework and project template
2. Install dependencies: `composer install`
3. Copy `.env.example` to `.env`
4. Start the server: `php console.php serve`

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

[](#quick-start)

### Create a Controller

[](#create-a-controller)

```
/**
 * @route GET /users/{id}
 * @route POST /users
 */
function user_show($params = []) {
    $user = user_find($params['id']);
    return farme_render('users/show', ['user' => $user]);
}
```

### Create a Model

[](#create-a-model)

```
function user_find($id) {
    return farme_find('users', $id);
}

function user_create($data) {
    return farme_insert('users', $data);
}
```

### Create a Template

[](#create-a-template)

```
