docile-php/docile 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

docile-php/docile

Composer 安装命令:

composer create-project docile-php/docile

包简介

A clean, DDD-first PHP framework skeleton

README 文档

README

A clean, DDD-first PHP framework.

Requirements

  • PHP 8.3 or higher
  • Composer 2

Installation

Create a new project using Composer:

composer create-project docile-php/docile myapp
cd myapp
cp .env.example .env

Starting the Development Server

Docile ships with a built-in deliver command that wraps PHP's built-in web server:

php bin/docile deliver

Custom host and port:

php bin/docile deliver --host=0.0.0.0 --port=8080

Or via the Composer script shorthand:

composer deliver

The server starts at http://localhost:8000 by default. Press Ctrl+C to stop.

Running Tests

composer test

Static Analysis

composer analyse

Directory Structure

app/
├── Console/Commands/      # Console commands
├── Exceptions/Handler.php # Exception handler
├── Http/
│   ├── Controllers/       # HTTP controllers
│   ├── Kernel.php         # HTTP kernel
│   └── Middleware/        # HTTP middleware
└── Providers/
    └── AppServiceProvider.php

bin/
└── docile                 # CLI entry point

bootstrap/
└── app.php                # Application bootstrap

config/
├── app.php
├── cache.php
└── database.php

public/
└── index.php              # HTTP entry point

routes/
├── api.php
└── web.php

storage/
├── cache/
└── logs/

tests/
└── Feature/
    └── ExampleTest.php

Packages

Package Description
docile/foundation Application, ServiceProvider, ExceptionHandler
docile/container PSR-11 dependency injection container
docile/config Typed configuration repository
docile/http PSR-7/15 HTTP kernel and response factories
docile/routing Attribute-based and fluent router
docile/console Console kernel, Command, Input, Output
docile/events PSR-14 event dispatcher
docile/bus CommandBus and QueryBus
docile/validation Attribute-based validator
docile/support Str, Arr, Collection, Pipeline, Env, Clock, Optional

License

The Docile framework skeleton is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-13