trueframe/trueframe
最新稳定版本:v0.1.1
Composer 安装命令:
composer create-project trueframe/trueframe
包简介
TrueFrame application skeleton
README 文档
README
A lightweight, Laravel-like PHP framework.
Setup Instructions
-
Clone the repository (or use composer create-project):
composer create-project trueframe/trueframe myapp cd myapp(If you cloned directly, then
composer installfirst) -
Copy the environment file and generate an application key:
cp .env.example .env php trueframe key:generate # This is run automatically by composer create-project -
Configure your database: Open
.envand set yourDB_DRIVER,DB_HOST,DB_PORT,DB_NAME,DB_USER, andDB_PASS. -
Run database migrations:
php trueframe migrate
-
(Optional) Install Tailwind CSS UI scaffold:
npm install -D tailwindcss postcss autoprefixer php trueframe ui:install tailwind # Now compile assets (e.g., using a simple build script or watch command) # npx tailwindcss -i ./resources/css/app.css -o ./public/build/app.css --watch
-
Start the PHP development server:
php -S localhost:8000 -t public
Now, open your browser and navigate to
http://localhost:8000.
CLI Commands
TrueFrame comes with a trueframe CLI tool (similar to Laravel's Artisan).
php trueframe make:controller <Name> [--resource]php trueframe make:model <Name> [-m]php trueframe make:migration <name>php trueframe migratephp trueframe migrate:rollbackphp trueframe db:seedphp trueframe make:seeder <Name>php trueframe make:middleware <Name>php trueframe make:provider <Name>php trueframe make:request <Name>php trueframe route:listphp trueframe cache:clearphp trueframe key:generatephp trueframe ui:install tailwindphp trueframe ai:scaffold <Resource> <fields...> [--crud --api --views]php trueframe servephp trueframe optimize
Adding additional Composer packages
You can install any package from Packagist:
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-30