承接 larafony/empty-project 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

larafony/empty-project

最新稳定版本:1.0.0

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

  1. Uncomment the DatabaseServiceProvider in bootstrap/app.php and bootstrap/console.php

  2. Configure your .env file:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=larafony
DB_USERNAME=root
DB_PASSWORD=
  1. Create models in src/Models/

Requirements

  • PHP 8.5 or higher
  • Composer

What's Next?

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.

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固