PHPackages                             trueframe/trueframe - 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. trueframe/trueframe

ActiveProject[Framework](/categories/framework)

trueframe/trueframe
===================

TrueFrame — AI-powered PHP framework for rapid development

v0.2.0(2mo ago)18MITPHPPHP ^8.2

Since Aug 30Pushed 2mo agoCompare

[ Source](https://github.com/habe90/trueframe)[ Packagist](https://packagist.org/packages/trueframe/trueframe)[ RSS](/packages/trueframe-trueframe/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

 **⚡ TrueFrame**
 *The AI-Powered PHP Framework*

 [Quick Start](#quick-start) • [AI Commands](#ai-commands) • [Why TrueFrame?](#why-trueframe) • [Documentation](#documentation)

---

What is TrueFrame?
------------------

[](#what-is-trueframe)

TrueFrame is a **modern PHP framework** built for developers who want to ship fast without learning a 500-page manual.

It has everything you need — routing, ORM, templating, auth, validation — but with **AI-first scaffolding** that generates production-ready code in seconds.

```
# This creates: Model + Migration + Controller + Views + Routes
php trueframe ai:crud Product title:string price:float description:text
php trueframe migrate
php trueframe serve
# Done. Full CRUD at /products in under 10 seconds.
```

Why TrueFrame?
--------------

[](#why-trueframe)

LaravelTrueFrame**Setup to first CRUD**15+ minutes**~10 seconds****Learning curve**Steep (facades, contracts, 40+ dirs)**Flat** (clear structure, minimal concepts)**Generate full CRUD**Multiple artisan commands + manual wiring**One command**: `ai:crud`**Generate REST API**Manual controllers + resources + routes**One command**: `ai:api`**Auth scaffolding**Separate package (Breeze/Jetstream)**Built-in**: `ai:auth`**Project health check**❌**Built-in**: `ai:analyze`**Template engine**Blade**TrueBlade** (compatible syntax, lighter core)TrueFrame is **not** "Laravel but smaller." It's a different philosophy:

> **Less boilerplate. More shipping.**

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

[](#quick-start)

### Install

[](#install)

```
composer create-project trueframe/trueframe myapp
cd myapp
```

### Configure

[](#configure)

```
cp .env.example .env
php trueframe key:generate
```

Edit `.env` with your database credentials:

```
DB_DRIVER=mysql
DB_HOST=127.0.0.1
DB_NAME=myapp
DB_USER=root
DB_PASS=
```

### Build Something

[](#build-something)

```
# Generate a full blog in one command
php trueframe ai:crud Post title:string body:text published:boolean

# Run migrations
php trueframe migrate

# Start server
php trueframe serve
```

Open `http://localhost:8000/posts` — your blog CRUD is live.

AI Commands
-----------

[](#ai-commands)

TrueFrame's killer feature. Every `ai:` command generates **production-ready** code, not stubs.

### `ai:crud` — Full CRUD in One Command

[](#aicrud--full-crud-in-one-command)

```
php trueframe ai:crud Product title:string price:float category:string
```

Generates:

- ✅ `app/Models/Product.php` — Model with fillable, casts
- ✅ `database/migrations/..._create_products_table.php` — Migration with schema
- ✅ `app/Http/Controllers/ProductController.php` — Full CRUD controller
- ✅ `app/Http/Requests/ProductRequest.php` — Form validation
- ✅ `resources/views/products/` — index, create, edit, show views (TrueBlade)
- ✅ `routes/web.php` — All 7 resource routes appended

### `ai:api` — REST API Endpoint

[](#aiapi--rest-api-endpoint)

```
php trueframe ai:api Post title:string body:text user_id:unsignedBigInteger
```

Generates model, migration, controller, and API routes (`GET`, `POST`, `PUT`, `DELETE`).

### `ai:auth` — Authentication Scaffolding

[](#aiauth--authentication-scaffolding)

```
php trueframe ai:auth
```

Generates login/register views, routes, middleware, and User model — ready to use.

### `ai:analyze` — Project Health Check

[](#aianalyze--project-health-check)

```
php trueframe ai:analyze
```

```
⚡ TrueFrame AI:Analyze — Project Health Report
═══════════════════════════════════════════════════════

  ✓ Passing:
    ✓ .env file exists
    ✓ 3 model(s) found
    ✓ 4 controller(s) found
    ✓ Authentication routes detected
    ✓ Layout template exists

  Health Score: 90% — Looking good!

```

### `ai:controller` — Smart Controller

[](#aicontroller--smart-controller)

```
php trueframe ai:controller Product title:string price:float
```

Generates a resource controller with all CRUD methods wired up.

CLI Reference
-------------

[](#cli-reference)

Beyond AI commands, TrueFrame includes a full CLI toolkit:

```
php trueframe serve                          # Start dev server
php trueframe route:list                     # List all routes
php trueframe migrate                        # Run migrations
php trueframe migrate:rollback               # Rollback last migration
php trueframe db:seed                        # Run seeders
php trueframe cache:clear                    # Clear all caches
php trueframe optimize                       # Optimize for production
php trueframe key:generate                   # Generate APP_KEY
php trueframe ui:install tailwind            # Install Tailwind CSS

php trueframe make:model  [-m]         # Create model (+ migration)
php trueframe make:controller          # Create controller
php trueframe make:migration           # Create migration
php trueframe make:middleware           # Create middleware
php trueframe make:request             # Create form request
php trueframe make:provider            # Create service provider
php trueframe make:seeder              # Create seeder

```

Project Structure
-----------------

[](#project-structure)

```
myapp/
├── app/
│   ├── Console/Commands/        # Custom CLI commands (ai:crud, ai:api, etc.)
│   ├── Http/
│   │   ├── Controllers/         # HTTP controllers
│   │   ├── Middleware/          # Auth, CSRF, Session middleware
│   │   └── Requests/           # Form request validation
│   ├── Models/                  # Database models
│   └── Providers/               # Service providers
├── bootstrap/                   # Application bootstrap
├── config/                      # Configuration files
├── database/
│   ├── migrations/              # Database migrations
│   └── seeders/                 # Database seeders
├── public/                      # Web root (index.php, assets)
├── resources/views/             # TrueBlade templates (.tf.php)
├── routes/
│   ├── web.php                  # Web routes
│   └── api.php                  # API routes
├── storage/                     # Cache, logs, sessions
├── trueframe                    # CLI entry point
└── composer.json

```

TrueBlade Templates
-------------------

[](#trueblade-templates)

TrueBlade is TrueFrame's template engine. Familiar syntax, zero learning curve:

```
@extends('layouts.app')

@section('content')
  {{ $title }}

  @if(count($products) > 0)
    @foreach($products as $product)
      {{ $product->name }} — ${{ $product->price }}
    @endforeach
  @else
    No products yet.
  @endif
@endsection
```

Template files use the `.tf.php` extension and are cached automatically.

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

[](#requirements)

- PHP 8.2+
- Composer 2.x
- MySQL/SQLite (for database features)

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

---

 Built with ⚡ by the TrueFrame team

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance83

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~110 days

Total

3

Last Release

87d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22656146?v=4)[Halil Hodzic](/maintainers/habe90)[@habe90](https://github.com/habe90)

---

Top Contributors

[![habe90](https://avatars.githubusercontent.com/u/22656146?v=4)](https://github.com/habe90 "habe90 (24 commits)")

### Embed Badge

![Health badge](/badges/trueframe-trueframe/health.svg)

```
[![Health](https://phpackages.com/badges/trueframe-trueframe/health.svg)](https://phpackages.com/packages/trueframe-trueframe)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M298](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
