承接 jinomial/fw-app-skeleton 相关项目开发

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

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

jinomial/fw-app-skeleton

最新稳定版本:v1.0.3

Composer 安装命令:

composer create-project jinomial/fw-app-skeleton

包简介

The FW application skeleton.

README 文档

README

Welcome to your new FW Framework application! FW is a modern, fast, async-first PHP framework built for performance and modularity.

This skeleton provides a robust starting point for building scalable APIs and web applications.

🚀 Getting Started

Follow these steps to get your local environment up and running:

1. Configure the Environment

Copy the example environment file. This file contains the configuration for your database, cache, and application secrets.

cp .env.example .env

(Remember: the .env file is loaded exactly once when the Swoole server boots. If you change a value, you must restart the server.)

2. Compile the Application

FW is a compiled framework. Before the application can serve requests, you must compile your declarative routing matrix, database schemas, views, and strict Dependency Injection (DI) container.

We provide the fw CLI tool (installed via Composer) to handle this. You can compile everything at once using the handy developer script:

# Formats code, runs static analysis, compiles everything, and restarts the local server
./bin/dev.sh

Or you can run individual compilation commands via the CLI:

php vendor/bin/fw build:api
php vendor/bin/fw build:db
php vendor/bin/fw build:view
php vendor/bin/fw build:container

3. Start the Async Worker

FW relies on a persistent memory execution model (Swoole) rather than the traditional PHP request lifecycle. Start the application stack using Docker:

docker compose up -d

Your application will now be live at http://localhost:8000!

🏗️ Directory Structure Overview

FW enforces a Domain-Driven Design modular structure instead of traditional monolithic app/Controllers and app/Models directories.

  • modules/: The heart of your application. Group your logic by feature or domain (e.g., User, Auth, Post). Each module contains its own routing, models, and logic.
  • api/: Declarative YAML definitions mapping endpoints to your module logic.
  • database/: Contains schema.yaml which defines your database structure, along with raw SQL migrations.
  • build/: The compiled, blazing-fast static PHP files generated by the fw CLI. Do not edit these manually.
  • config/: Contains framework configuration and dependencies.php for binding custom factories into the DI container.
  • public/: The public-facing entry point, containing server.php which bootstraps the persistent Swoole worker.

🧪 Testing and Tooling

Your application comes pre-configured with industry-standard tooling:

  • Testing: We use Pest PHP. Run your test suite with:
    vendor/bin/pest
  • Static Analysis: PHPStan is configured to catch errors before runtime:
    vendor/bin/phpstan analyse

Happy building! 🚀

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固