larafony/empty-project
Composer 安装命令:
composer create-project larafony/empty-project
包简介
Larafony Framework Empty Project - Minimal starter template
README 文档
README
Minimal starter template for the Larafony Framework. Start with a clean slate and build exactly what you need.
Installation
composer create-project larafony/empty-project my-app
cd my-app
Quick Start
1. Start the Development Server
composer serve
Visit: http://localhost:8000
2. Create Your First Controller
Add controllers in src/Controllers/:
<?php namespace App\Controllers; use Larafony\Framework\Routing\Advanced\Attributes\Route; use Larafony\Framework\Web\Controller; use Psr\Http\Message\ResponseInterface; class HelloController extends Controller { #[Route('/hello/{name}', 'GET')] public function hello(string $name): ResponseInterface { return $this->render('hello', ['name' => $name]); } }
3. Create a Blade View
Add views in resources/views/blade/:
<x-layout title="Hello"> <h1>Hello, {{ $name }}!</h1> </x-layout>
Project Structure
my-app/
├── bin/larafony # CLI entry point
├── bootstrap/
│ ├── app.php # Web application bootstrap
│ └── console.php # Console application bootstrap
├── config/
│ ├── app.php # Application config
│ ├── database.php # Database config
│ ├── logging.php # Logging config
│ └── views.php # View engine config
├── public/
│ └── index.php # Web entry point
├── resources/views/blade/ # Blade templates
├── src/
│ ├── Controllers/ # Your controllers
│ └── View/Components/ # Blade components
└── storage/
├── cache/ # Compiled views
└── logs/ # Application logs
Enabling Database Support
-
Uncomment the DatabaseServiceProvider in
bootstrap/app.phpandbootstrap/console.php -
Configure your
.envfile:
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=larafony DB_USERNAME=root DB_PASSWORD=
- Create models in
src/Models/
Requirements
- PHP 8.5 or higher
- Composer
What's Next?
- Check out larafony/skeleton for a full-featured demo
- Read the documentation at larafony.com
From the Creator
Building a web app? Understand how your users really use it.
Record-it lets you record user sessions and replay them like a video. See clicks, scrolls, form interactions - everything your users do. Find UX issues before they become complaints.
- Session recording & replay & mp4 export
- Heatmaps & click tracking
- Privacy-first (GDPR compliant)
Try it free at record-it.eu | PL: nagraj-to.pl
🚀 Learn How It's Built—From Scratch
Interested in how Larafony is built step by step?
Check out my full PHP 8.5 course, where I explain everything from architecture to implementation — no magic, just clean code.
👉 Get it now at masterphp.eu
Additional Resources
License
The Larafony framework is open-sourced software licensed under the MIT license.
larafony/empty-project 适用场景与选型建议
larafony/empty-project 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 larafony/empty-project 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 larafony/empty-project 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-10